lib/sources: make commitIdFromGitRepoOrError internal and use # for comments
so that it doesn't make the manual build fail
> Apparently this is related to the combination of this new function not getting exported from the file, while still getting documented.