-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
LibGit2 push() has no effect #20741
Comments
Do you have GitHub 2FA set up, and have you confirmed that |
I do not have 2FA on my GitHub account, and origin is a valid remote. Pushing from the command line after ending the Julia session works fine, so I know that the commit is definitely not an issue. |
Welp, I'm out of ideas then. I'm inclined to call this a bug. |
I'm having the exact same problem, not 2FA, push exits with a 0, push works from the command line. I thought I was just being an idiot so it's good to see it's not just me. |
Apparently you need to manually specify at least 1 refspec, e.g.
will push the master branch. This whole interface probably needs redesigning as part of #19839, but in the meantime we should at least document this. |
I'm not familiar with code, but couldn't making |
I think a better solution would be for it to default to the current branch. Thoughts? I can make a PR for that + documentation. |
The behaviour of CLI |
That's a good idea. Is there a simple way to pass that value somewhere and have it do the work of figuring out how to behave, or do I need to do that myself? |
I don't think so, unfortunately (or at least, I couldn't find it). |
Oh well, I'll see what I can come up with. |
I think I can fix this tonight or at least make it more convenient. |
Did #21227 fix this? |
So as I understand it, I should be able to write
Afterwards, I tried using the Am I doing the first method incorrectly? |
Well, I'm glad my code works... You might try setting a |
No luck 😞 |
Weird. I'll see if I can figure this out but if you want to open a PR to fix the docs go ahead. |
Also, do you think this has been resolved sufficiently to close? |
Definitely, any further discussion on how to make it better/more user friendly is unrelated to my 'this doesn't work!!!!' complaint 😄 |
Great, glad I managed to help. |
I can't seem to push on 0.5 nor 0.6. Everything up to the push works fine.
I've also tried manually passing the remote url and setting
force=true
but they both return 0 and do nothing.Reproducing:
The text was updated successfully, but these errors were encountered: