mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 12:05:03 +00:00
contrib/copr: better detect git-ref in "nm-copr-build.sh"
This commit is contained in:
parent
36ad5cbb3b
commit
fce8e572d0
|
@ -66,6 +66,7 @@ git remote remove nm-git-bundle || true
|
|||
|
||||
GIT_SHA="$(git show-ref --verify --hash "$GIT_REF" 2>/dev/null ||
|
||||
git show-ref --verify --hash "refs/remotes/origin/$GIT_REF" 2>/dev/null ||
|
||||
git rev-parse --verify "refs/remotes/origin/$GIT_REF" 2>/dev/null ||
|
||||
git rev-parse --verify "$GIT_REF^{commit}" 2>/dev/null)"
|
||||
|
||||
git checkout -b tmp "$GIT_SHA"
|
||||
|
|
Loading…
Reference in a new issue