add -q flag for git worktree

This commit is contained in:
Vladimir Karpov
2025-06-07 17:42:29 +03:00
parent 5090812df4
commit 3cfa73bc17

View File

@@ -36,7 +36,8 @@ kube::util::ensure-temp-dir
WORKTREE="${KUBE_TEMP}/worktree"
# Create a copy of the repo with $BRANCH checked out
git worktree add -f "${WORKTREE}" "${BRANCH}"
git worktree add -f -q "${WORKTREE}" "${BRANCH}"
# Clean up the copy on exit
kube::util::trap_add "git worktree remove -f ${WORKTREE}" EXIT