mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 21:30:10 +01:00
contrib/copr: better detect git-ref in "nm-copr-build.sh"
(cherry picked from commit fce8e572d0)
This commit is contained in:
parent
4a2ab85034
commit
b7bdd08af6
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue