Skip to content

Commit c2d73c7

Browse files
committed
Fix version string used
1 parent b66fa07 commit c2d73c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/semver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if test -f REVISION; then
55
SOURCE_REVISION=`test -f REVISION && head -n1 REVISION`
66
elif test "${PWD##*/}" != "OpenModelica" && test -f ../REVISION; then
77
SOURCE_REVISION="OpenModelica `test -f ../REVISION && head -n1 ../REVISION`"
8-
elif test -z "$SOURCE_REVISION" && test -e .git; then
8+
elif test -z "$SOURCE_REVISION"; then
99
DESCRIBE_SHORT=`git describe --match "v[0-9]*.[0-9]*.[0-9]*" --always`
1010
DESCRIBE_LONG=`git describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --long`
1111
if test "$DESCRIBE_SHORT" != "$DESCRIBE_LONG"; then

0 commit comments

Comments
 (0)