Skip to content

Commit c14bf41

Browse files
DanielBautenadmorgan
authored andcommitted
Remove worktree in push
Set worktree variable before calling git:delete-branch to remove the worktree.
1 parent dbb99be commit c14bf41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/git-subrepo

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ subrepo:push() {
616616
fi
617617

618618
branch_name=subrepo/$subref
619+
# We must make sure that a stale worktree is removed as well
620+
worktree=$GIT_TMP/$branch_name
619621
git:delete-branch "$branch_name"
620622

621623
if $squash_wanted; then

0 commit comments

Comments
 (0)