We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b66fa07 commit c2d73c7Copy full SHA for c2d73c7
common/semver.sh
@@ -5,7 +5,7 @@ if test -f REVISION; then
5
SOURCE_REVISION=`test -f REVISION && head -n1 REVISION`
6
elif test "${PWD##*/}" != "OpenModelica" && test -f ../REVISION; then
7
SOURCE_REVISION="OpenModelica `test -f ../REVISION && head -n1 ../REVISION`"
8
-elif test -z "$SOURCE_REVISION" && test -e .git; then
+elif test -z "$SOURCE_REVISION"; then
9
DESCRIBE_SHORT=`git describe --match "v[0-9]*.[0-9]*.[0-9]*" --always`
10
DESCRIBE_LONG=`git describe --match "v[0-9]*.[0-9]*.[0-9]*" --always --long`
11
if test "$DESCRIBE_SHORT" != "$DESCRIBE_LONG"; then
0 commit comments