git-version-gen: do require git-VC'd files in cwd
authorJim Meyering <meyering@redhat.com>
Wed, 13 Oct 2010 20:11:31 +0000 (22:11 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 14 Oct 2010 05:29:30 +0000 (07:29 +0200)
commit49e38169beb576f18a11b1858bd3601a999092dc
tree6cd19425051f404a24ae9458a1223c344cc7fc05
parent1179fb893526296be259211c2530feb225ebefc8
git-version-gen: do require git-VC'd files in cwd

* build-aux/git-version-gen: Reject a git version string
if there are no commits associated with the current directory.
This avoids an unlikely false-positive (unrelated dir whose parent
repository also contains a tag matching v*), as pointed out
by Giuseppe Scrivano in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
ChangeLog
build-aux/git-version-gen