abhinav / git-spice

Manage stacked Git branches
https://abhinav.github.io/git-spice/
GNU General Public License v3.0
220 stars 11 forks source link

repo sync: Fix deleting wrong tracking branch for renamed branches #401

Closed abhinav closed 1 month ago

abhinav commented 1 month ago

If a branch is renamed after submission and then merged, the tracking branch name does not match the local branch name.

This case must be correctly handled when deleting the tracking branch: if we know the upstream branch name use $remote/$upstreamBranch instead of $remote/$branch.

Also drop the outdated comment about how we detect merged branches sinc we're indeed doing both (1) and (2) now.

abhinav commented 1 month ago

This change is part of the following stack:

Change managed by git-spice.