Description
Hey!
Would it be possible to add a warning/error message when running git spr update
on a branch that looks like a remote auto-generated spr branch (when the current branch has the format pr/username/branchname/commitid
)?
One of my team members raised a PR with spr and when they wanted to update it, they checked out the remote branch that was used in the PR (pr/username/branchname/commitid
). Then, they amended the commit and ran git spr update
again, which created a branch pr/username/pr/username/branchname/commitid/commitid
(it correctly used pr/username/branchname/commitid
as the local branch name).
I reckon this may be a common mistake newcomers may make, so having a warning when the local branch name matches the format for remote branch names would be great.