diff --git a/lib/git-subrepo b/lib/git-subrepo index a6d5d96a..e13eca08 100755 --- a/lib/git-subrepo +++ b/lib/git-subrepo @@ -840,7 +840,7 @@ subrepo:branch() { local filter=$branch [[ $first_gitrepo_commit ]] && filter=$first_gitrepo_commit..$branch FAIL=false RUN git filter-branch -f --prune-empty --tree-filter \ - "rm -f .gitrepo" "$filter" + "rm -f .gitrepo" -- "$filter" --first-parent git:create-worktree "$branch"