Skip to content

Commit

Permalink
Update incremental-git-filterbranch
Browse files Browse the repository at this point in the history
Force fetch to support git 2.20+
  • Loading branch information
KorvinSzanto authored Nov 29, 2023
1 parent 561bcab commit 6940eef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/incremental-git-filterbranch
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ prepareWorkerRepository () {
# $1: the name of the branch to work with
processBranch () {
echo ' - fetching'
git -C "${WORKER_REPOSITORY_DIR}" fetch --update-shallow --quiet --tags source "${1}"
git -C "${WORKER_REPOSITORY_DIR}" fetch --update-shallow --quiet --tags --force source "${1}"
echo ' - setting current branch'
git -C "${WORKER_REPOSITORY_DIR}" update-ref "refs/heads/filter-branch/source/${1}" "refs/remotes/source/${1}"
git -C "${WORKER_REPOSITORY_DIR}" symbolic-ref HEAD "refs/heads/filter-branch/source/${1}"
Expand Down

0 comments on commit 6940eef

Please sign in to comment.