-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
pull on clone with multiple remotes yields Error: 'git: inconclusive remotes' and stuck on 'Pull: preparing ...' #1093
Comments
hm interesting so you have no remote called does it work if you name one |
okay i renamed it
Just in case the problem was the slash in our branch names (see next comment) |
I tried this on a different cloned project that had 2 remotes, but the checked-out branch was
|
Same here. I do not have "origin" remote. The application is awesome BTW. Fast and small. I'll be keeping an eye on it and hopefully it goes mainstream. |
somewhat related to #1306 |
This is still a pending issue, it’s a strange decision to not support any other remote identifier than |
its not so much a decision but a lack of implementing that feature. and implementing to configure something that would be obsolete as soon as the proper remote selection UI is implemented made no sense. |
If an interface to select custom remotes is right around the corner, sure, I just think this is a somewhat glaring oversight in the current version. I’ve looked through a number of issues here and it seems the intended behaviour right now should behave as (1) look for My personal suggestion to triage this:
I don’t have a good working relationship with Rust and don't want to intrude into your implementation but I can see |
There are git config settings related to remote branches, among them https://git-scm.com/docs/git-config#Documentation/git-config.txt-remotepushDefault |
good point. then we should probably allow visualising what these configs are set to and allow changing them. and of course we need to start using them, at this point they are not respected by gitui I still think we need to systematically support multiple remotes: add/remove and when I create a branch locally I need to know to which remote it should go to (or multiple even, does git allow that?) my personal use case I'd like to cover is: adding remote with a PR branch, check it out locally, work with it, commit to it, push to it, delete it after. |
There is gitui/asyncgit/src/sync/remotes/mod.rs Lines 54 to 82 in 370aff5
https://docs.rs/git2/latest/git2/struct.Repository.html#method.branch_upstream_remote |
@cruessler yes that would be a great start. could you look into that? |
I’d like to do that if you haven’t already started working on a solution yourself! |
@cruessler no I have not. would be really welcome if you could tackle this! |
What would be the expected behaviour of Git itself does not seem to have a repository-wide concept of a default remote. (Will join Discord next time, I’ve only now seen you mention it.) |
Adding someting like |
Everyone here please give #2156 a try, as this improves dealing with multiple remotes quiet a bit! |
@RobertHana would you be able to build from source off of @cruessler #2156 to test if this fixes your problem? |
@extrawurst #2156 implements changes for push only so far. |
@RobertHana please review the next nightly build and whether it fixes the bug for you |
Describe the bug
I cloned a repo and added a 2nd remote. Using gitui, I issued the Pull[f] and it yielded 'Error: git: inconclusive remotes' and eventually got stuck on 'Pull: preparing ...'.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the pull to pull from the tracked remote, at least.
Screenshots
I don't think I need a screenshot, do I?
Context (please complete the following information):
Software version
gitui 0.19.0
Operating system
macOS 11.6 (Darwin 20.6.0)
Compile time information
Environment variables
Command-line
Additional context
If you aren't familiar with how to add multiple remotes:
% git remote add remote1 {git-remote-url1}
% git remote add remote2 {git-remote-url2}
The text was updated successfully, but these errors were encountered: