From a8b3d05041d440c0096dd0c9ba3d4a0e4c256c31 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 19 Nov 2024 12:20:27 +0100 Subject: [PATCH] pull-test.sh: fix "git subtree pull" errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without allowing to fetch missing file content, "git subtree pull" fails: remote: warning: lazy fetching disabled; some objects may not be available remote: fatal: could not fetch b18c53581356c52a220a2baf1c8cf3fd9c57dda6 from promisor remote error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side.� fatal: protocol error: bad pack header --- pull-test.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pull-test.sh b/pull-test.sh index 5ea051ec..80317720 100755 --- a/pull-test.sh +++ b/pull-test.sh @@ -20,6 +20,11 @@ set -ex +# Prow checks out repos with --filter=blob:none. This breaks +# "git subtree pull" unless we enable fetching missing file content. +GIT_NO_LAZY_FETCH=0 +export GIT_NO_LAZY_FETCH + # It must be called inside the updated csi-release-tools repo. CSI_RELEASE_TOOLS_DIR="$(pwd)"