Skip to content

Commit 550e736

Browse files
DanielBautenjameswalmsley
authored andcommitted
avoid unnecessary long filter range, if there aren't any relevant new commits
1 parent 5cf4eb8 commit 550e736

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/git-subrepo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,7 @@ subrepo:branch() {
806806
if [[ -z "$prev_commit" ]]; then # i.e. there are no new reachable commits
807807
o "Create branch '$branch' for subrepo commit $subrepo_commit."
808808
prev_commit="$subrepo_commit"
809+
first_gitrepo_commit="$subrepo_commit" # force neutralization of $filter to avoid unnecessary large range (see below)
809810
else
810811
o "Create branch '$branch' for this new commit set $prev_commit."
811812
fi

0 commit comments

Comments
 (0)