mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-26 16:20:28 +00:00
ci: checkout FETCH_HEAD instead of GIT_REF
GIT_REF can point to a ref that it not part of a branch and can not easily be checked out (like a GitHub PR). Checking out FETCH_HEAD after fetching the GIT_REF works. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
5f9222d7ee
commit
b1d7c83c16
@ -14,4 +14,4 @@ set -e
|
|||||||
git init .
|
git init .
|
||||||
git remote add origin "${GIT_REPO}"
|
git remote add origin "${GIT_REPO}"
|
||||||
git fetch origin "${GIT_REF}"
|
git fetch origin "${GIT_REF}"
|
||||||
git checkout "${GIT_REF}"
|
git checkout FETCH_HEAD
|
||||||
|
Loading…
Reference in New Issue
Block a user