From 14314fc1268a63b10d865d9be033646b2bdc523a Mon Sep 17 00:00:00 2001 From: andy Date: Fri, 19 Dec 2008 16:39:35 +0000 Subject: [PATCH] correcting script for refs/heads/master instead of HEAD - if local repo is up to date, HEAD and origin/HEAD are the same so id was returned twice --- wmake/wmakePrintBuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmake/wmakePrintBuild b/wmake/wmakePrintBuild index 868357fe58..1eb59cf46c 100755 --- a/wmake/wmakePrintBuild +++ b/wmake/wmakePrintBuild @@ -94,7 +94,7 @@ then rc=0 else # building under git (get the head SHA1) - version=$(git show-ref --hash=12 --head HEAD 2>/dev/null) + version=$(git show-ref --hash=12 --head refs/heads/master 2>/dev/null) rc=$? # prefix with WM_PROJECT_VERSION