From 7796bd966c18276fe8c52e0e7854e83c9c7e1ecf Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Thu, 3 Nov 2011 23:25:56 +0000 Subject: [PATCH] Make version.sh find git metadata only for openconnect itself, not parent dirs Signed-off-by: David Woodhouse --- version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.sh b/version.sh index 3776140..c432c93 100755 --- a/version.sh +++ b/version.sh @@ -2,7 +2,7 @@ v="v3.13" -if tag=`git describe --tags`; then +if [ -d .git ] && tag=`git describe --tags`; then v="$tag" # Update the index from working tree first -- 2.7.4