git-version-gen: skip "-dirty" check when appropriate
authorJim Meyering <meyering@redhat.com>
Sat, 19 Feb 2011 19:48:36 +0000 (20:48 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 19 Feb 2011 21:39:21 +0000 (22:39 +0100)
commitfd0201ccc46872c548b158c471aa1e229e5a74a6
treecd40f281f01fdd5a10fcdef493f1625cfe88a026
parent3001b7ba0b3d028afc7c0ff715eb83ebe41ef4ac
git-version-gen: skip "-dirty" check when appropriate

* build-aux/git-version-gen: Don't run any git commands when the
version string comes from .tarball-version.  Prior to this, we
would run git update-index --refresh even from a just-unpacked
tarball directory, and that could affect a .git/ directory in a
parent of the build directory.  Reported by Mike Frysinger.
ChangeLog
build-aux/git-version-gen