sublime_merge
sublime_merge copied to clipboard
Can't merge from a branch named `stash`
Version info
- OS: Windows 11
- Build: 2077
Description
I can't merge from a branch named stash.
Rebasing also doesn't work, since it also tries to rebase on a stash, not the stash branch.
Steps to reproduce
Steps to reproduce the behavior:
- Make a branch called
stash - Check out another branch
- Right click on the
stashbranch and try to merge it into the current branch. gittries to merge from a stash down in the tree rather than thestashbranch. (Merge runsgit merge stash)
Expected behavior
Either:
Sublime Merge merges the stash branch.
Or:
Sublime Merge doesn't let me create a branch named stash.
Screenshots
After right click -> merge

After clicking merge

Hi @mbartlett21,
Thanks for reporting this issue - we'll be investigating this further and will keep you updated as this progresses.
Kind regards, - Dylan
@dpjohnst I also found that git on the command line doesn't work too well with a branch named stash.
Details
> # stash pop actually doesn't work
> git stash pop 'stash@{0}'
warning: refname 'stash' is ambiguous.
warning: refname 'stash' is ambiguous.
warning: refname 'stash' is ambiguous.
warning: refname 'stash' is ambiguous.
warning: refname 'stash' is ambiguous.
warning: refname 'stash' is ambiguous.
> # these ones do actually work properly though
> git checkout stash
warning: refname 'stash' is ambiguous.
Switched to branch 'stash'
> git checkout 'stash@{0}'
warning: refname 'stash' is ambiguous.
warning: refname 'stash' is ambiguous.
Note: switching to 'stash@{0}'.
...
HEAD is now at b9e3dbb WIP on master: 15a3206 Show small round corners
Hi @mbartlett21,
Thanks again for reporting this!
This has been resolved in Sublime Merge build 2080 (development build).
Kind regards, - Dylan from Sublime HQ