discover: Enable 'url' pb-events
[petitboot] / version.sh
index 18981f617b15b65654a6cb1d1d9de8f77eb72e86..4f6f8619502917ca8b4cd02b022cf49025272f08 100755 (executable)
@@ -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=''