Skip to content

Commit

Permalink
pull-test.sh: fix "git subtree pull" errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pohly committed Nov 19, 2024
1 parent 227577e commit a8b3d05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pull-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"

Expand Down

0 comments on commit a8b3d05

Please sign in to comment.