aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/git-version-gen
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/git-version-gen')
-rwxr-xr-xopenbsc/git-version-gen4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/git-version-gen b/openbsc/git-version-gen
index f2ad4a762..42cf3d2bd 100755
--- a/openbsc/git-version-gen
+++ b/openbsc/git-version-gen
@@ -92,8 +92,8 @@ fi
if test -n "$v"
then
: # use $v
-elif test -d ./../.git \
- && v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
+elif
+ v=`git describe --abbrev=4 --match='v*' HEAD 2>/dev/null \
|| git describe --abbrev=4 HEAD 2>/dev/null` \
&& case $v in
[0-9]*) ;;