diff options
author | Dan Church <amphetamachine@gmail.com> | 2023-01-09 13:53:47 -0600 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-01-09 22:40:38 +0100 |
commit | 7754005e3870d8b388c074d356389d13018e15f6 (patch) | |
tree | 8e8e2daadc2a1ff4ea113873ebfc415ab3a69efa /contrib | |
parent | be0ba43d7a81a8e44c047b93e8c19cc30d2f983a (diff) | |
download | gnunet-7754005e3870d8b388c074d356389d13018e15f6.tar.gz gnunet-7754005e3870d8b388c074d356389d13018e15f6.zip |
Fix git detection when cloned as submodule
Signed-off-by: Christian Grothoff <christian@grothoff.org>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/get_version.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/get_version.sh b/contrib/get_version.sh index 7366c6bf6..6e3ab5141 100755 --- a/contrib/get_version.sh +++ b/contrib/get_version.sh | |||
@@ -5,7 +5,7 @@ if test -f ".version" | |||
5 | then | 5 | then |
6 | VERSION=$(cat .version) | 6 | VERSION=$(cat .version) |
7 | fi | 7 | fi |
8 | if test -d "./.git" | 8 | if [ -e ./.git ] |
9 | then | 9 | then |
10 | VERSION=$(git describe --tags) | 10 | VERSION=$(git describe --tags) |
11 | VERSION=${VERSION#v} | 11 | VERSION=${VERSION#v} |