Skip to content

Commit a8b3d05

Browse files
committed
pull-test.sh: fix "git subtree pull" errors
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 b18c535 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
1 parent 227577e commit a8b3d05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pull-test.sh

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020

2121
set -ex
2222

23+
# Prow checks out repos with --filter=blob:none. This breaks
24+
# "git subtree pull" unless we enable fetching missing file content.
25+
GIT_NO_LAZY_FETCH=0
26+
export GIT_NO_LAZY_FETCH
27+
2328
# It must be called inside the updated csi-release-tools repo.
2429
CSI_RELEASE_TOOLS_DIR="$(pwd)"
2530

0 commit comments

Comments
 (0)