mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user