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

Sometimes "git pull" errors with "fatal: Cannot rebase onto multiple branches." but is fine immediately afterwards #523

Open
tomchiverton opened this issue Feb 15, 2023 · 4 comments

Comments

@tomchiverton
Copy link

$ cd x.y
~/workspace/docker/sites/x.y [master|…13⚑ 1] 
09:41 $ git pull
fatal: Cannot rebase onto multiple branches.
~/workspace/docker/sites/x.y [master ↓·18|…13⚑ 1] 
09:41 $ git pull
Updating d1f83acf0..ae2ab08ef
Fast-forward

I assume something is going on in the background, and the prompt isn't waiting ?

@ogr3
Copy link
Contributor

ogr3 commented Feb 15, 2023

yes, that's the problem with the prompt updating in the background. Its mostly nice but this can happen - just wait a second or two and re-issue the pull command.

This happens in the git plugin for oh-my-zsh as well

@tomchiverton
Copy link
Author

Is there no way to run the update synchronously ? I didn't see an option, and "git fetch" is normally quick...

@ogr3
Copy link
Contributor

ogr3 commented Feb 15, 2023

Not configurable at the moment - it was introduced 10 years ago as a key feature of this project in #23

@tomchiverton
Copy link
Author

What about an extra delay before stating the background task ? This would give a chance for a "git X" after a "cd" into a clone to run first ?

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

No branches or pull requests

2 participants