-
-
Notifications
You must be signed in to change notification settings - Fork 971
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
"Cannot rebase onto multiple branches." when repeatedly using git pull #408
Comments
I've never run into this, and I can't reproduce using Git 2.17.0 ( |
Thanks for looking into it. I also use git |
Weird. Did you manage to reproduce this with your stripped down zshrc? Could the git repo be in some weird state? Pure doesn't do anything special. It issues |
If it was a commit that broke it, could you do a |
I bisected it using the stripped down Commenting in and out parts of that commit, the Edit: I realised that I'm not using the latest release tag ( |
Thanks for tracking it down! It's curious that this happens to you, I have a very similar setup :/. This is a bit of a wild guess, but does it help if you add Not even sure how to start debugging this, if this turns out to be a common problem, reverting #397 might be the only option :(. |
Adding
I'm on my work laptop right now, but I'll let you know if I have the same issue at home using my personal machine. I guess it will, but since you have a similar setup and don't run into this it might just be something on my work machine that's interfering. If I can help in any way, let me know. In case it helps, my dotfiles are here: https://github.com/neowork/dotfiles |
Thanks, setting pull mode in git config did the trick. I can now reproduce. Turns out the implementation in #397 isn't allowing the async worker to flush it's job (it's used to kill the fetch to give room for your pull). So you have basically two concurrent git fetch/pull running, which is causing the error. I'll try to come up with a solution, either reverting #397 or allowing the signals to propagate correctly while monitor mode is enabled. |
Awesome, thank you so much for your work! |
@trautwein care to give latest master a spin? |
Works perfectly! 🎉 |
I ran into this problem using direnv and submodules with git version 2.20.1 (Apple Git-117). My solution was to use an alias like Apparently, the position of the |
This allows for signal propagation when the async worker is flushed. Fixes sindresorhus#408.
General information
HEAD (master)
5.5.1 (x86_64-apple-darwin17.5.0)
iTerm2 Build 3.1.6
macOS High Sierra 10.13.4 (17E202)
antibody 3.4.5
I have:
Terminal Version 2.8.2 (404)
Problem description
When repeatedly using
git pull
or the aliasedgl
I get the following error from git:fatal: Cannot rebase onto multiple branches.
When waiting around 10 seconds in between executing
git pull
, the command works as intended.I've only had this problem since a couple of weeks, so it might be a recent change in pure that broke this. Of course, it could also be a dependency or something else altogether.
Reproduction steps
cd
into a git project foldergit pull
git pull
againMy
.zshrc
(stripped to bare minimum):The text was updated successfully, but these errors were encountered: