mirror of
https://github.com/status-im/nimbus-build-system-desktop.git
synced 2025-02-19 17:04:40 +00:00
build_nim.sh: deal with old local branches used as Nim targets (#23)
This commit is contained in:
parent
a1da1f403d
commit
0e709abc28
@ -68,6 +68,9 @@ nim_needs_rebuilding() {
|
||||
git fetch --all
|
||||
git checkout -q ${NIM_COMMIT}
|
||||
fi
|
||||
# In case NIM_COMMIT is a local branch that's behind the remote one it's tracking.
|
||||
git pull -q 2>/dev/null || true
|
||||
git checkout -q ${NIM_COMMIT}
|
||||
# We can't use "rev-parse" here, because it would return the tag object's
|
||||
# hash instead of the commit hash, when NIM_COMMIT is a tag.
|
||||
NIM_COMMIT_HASH="$(git rev-list -n 1 ${NIM_COMMIT})"
|
||||
|
Loading…
x
Reference in New Issue
Block a user