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: Don't complain about deleted remote branches #395

Closed abhinav closed 1 month ago

abhinav commented 1 month ago

Right now, if you run git pull or git fetch with --prune before calling repo sync, it will complain that the remote tracking branch is missing. It's only an error, not a warning, but it can still be confusing.

This makes repo sync check if the remote tracking branch exists before trying to delete it, making it a no-op if the branch has already been deleted.

abhinav commented 1 month ago

This change is part of the following stack:

Change managed by git-spice.