From 3cfa73bc17b644ec0dd76d910b2629f5c60b0d46 Mon Sep 17 00:00:00 2001 From: Vladimir Karpov Date: Sat, 7 Jun 2025 17:42:29 +0300 Subject: [PATCH] add -q flag for git worktree --- hack/verify-govulncheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hack/verify-govulncheck.sh b/hack/verify-govulncheck.sh index 5057f9a3142..d9c2c156d4a 100755 --- a/hack/verify-govulncheck.sh +++ b/hack/verify-govulncheck.sh @@ -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