]> diplodocus.org Git - nmh/commitdiff
Make sure we are in the correct directory when we do "git describe".
authorKen Hornstein <kenh@pobox.com>
Wed, 17 May 2017 01:30:10 +0000 (21:30 -0400)
committerKen Hornstein <kenh@pobox.com>
Wed, 17 May 2017 01:30:10 +0000 (21:30 -0400)
config/version.sh

index b94c62c..5b76808 100755 (executable)
@@ -8,7 +8,7 @@ set -e
 version=${1?}
 host=`uname -n`
 if test -d "$srcdir/.git"; then
 version=${1?}
 host=`uname -n`
 if test -d "$srcdir/.git"; then
-    git=" `git describe --long --dirty`"
+    git=" `git -C $srcdir describe --long --dirty`"
 else
     git=
 fi
 else
     git=
 fi