mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Always pass HEAD to worktree
Without this, repeated runs can end up using the same SHA (because of the "helpful" branch creation.
This commit is contained in:
parent
20ff5381ce
commit
6545958921
@ -33,7 +33,7 @@ _tmpdir="$(kube::realpath "$(mktemp -d -t verify-generated-files.XXXXXX)")"
|
|||||||
_tmp_gopath="${_tmpdir}/go"
|
_tmp_gopath="${_tmpdir}/go"
|
||||||
_tmp_kuberoot="${_tmp_gopath}/src/k8s.io/kubernetes"
|
_tmp_kuberoot="${_tmp_gopath}/src/k8s.io/kubernetes"
|
||||||
mkdir -p "${_tmp_kuberoot}/.."
|
mkdir -p "${_tmp_kuberoot}/.."
|
||||||
git worktree add "${_tmp_kuberoot}"
|
git worktree add "${_tmp_kuberoot}" HEAD
|
||||||
kube::util::trap_add "git worktree remove -f ${_tmp_kuberoot} && rm -rf ${_tmpdir}" EXIT
|
kube::util::trap_add "git worktree remove -f ${_tmp_kuberoot} && rm -rf ${_tmpdir}" EXIT
|
||||||
cd "${_tmp_kuberoot}"
|
cd "${_tmp_kuberoot}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user