Skip to content

Commit 6940eef

Browse files
authored
Update incremental-git-filterbranch
Force fetch to support git 2.20+
1 parent 561bcab commit 6940eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/incremental-git-filterbranch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ prepareWorkerRepository () {
604604
# $1: the name of the branch to work with
605605
processBranch () {
606606
echo ' - fetching'
607-
git -C "${WORKER_REPOSITORY_DIR}" fetch --update-shallow --quiet --tags source "${1}"
607+
git -C "${WORKER_REPOSITORY_DIR}" fetch --update-shallow --quiet --tags --force source "${1}"
608608
echo ' - setting current branch'
609609
git -C "${WORKER_REPOSITORY_DIR}" update-ref "refs/heads/filter-branch/source/${1}" "refs/remotes/source/${1}"
610610
git -C "${WORKER_REPOSITORY_DIR}" symbolic-ref HEAD "refs/heads/filter-branch/source/${1}"

0 commit comments

Comments
 (0)