Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git switch fails when you have branches that end with the same substring #59

Closed
lombo opened this issue Apr 23, 2012 · 2 comments · Fixed by #85
Closed

git switch fails when you have branches that end with the same substring #59

lombo opened this issue Apr 23, 2012 · 2 comments · Fixed by #85

Comments

@lombo
Copy link

lombo commented Apr 23, 2012

I have two branches

  • xxxx_same_substring
  • yyyy_same_substring

When switching between branches the stashes for these two got all mixed up.

@suan
Copy link
Contributor

suan commented Oct 3, 2012

There is definitely something funky going on with the auto-stash/pop. This is a comment I posted here #7 (comment) which I'm redisplaying for convenience:

When I git-switch to branch X which has a Legit-created stash at stash@{1} (Not stash@{0}), stash@{0} gets popped, even though that was a Legit stash for another branch.

I have a feeling, on my machine at least, that Legit is simply popping the top stash, or the first one with "Legit" in it. And in this case the branches didn't even have the same prefix. Using version 0.1.0 installed via pip.

@wkentaro
Copy link
Contributor

fixed via #85 ?

@weakish weakish closed this as completed Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants