summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xversion.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/version.sh b/version.sh
index 18981f6..4f6f861 100755
--- a/version.sh
+++ b/version.sh
@@ -5,6 +5,8 @@
version=
datefmt='%Y%m%d'
+export GIT_DIR=$(basename $0)/.git/
+
if head=$(git rev-parse --short=8 --verify HEAD 2>/dev/null); then
suffix=''
OpenPOWER on IntegriCloud