-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Breaking behavior change: pushing topic branch to wrong remote #1762
Comments
@heaths Thank you for reporting! After you've pushed to origin, is there an |
Yes, I set the tracking branch on push. |
@heaths Thank you! I will investigate this next week. Sorry for the trouble! Protip: you can get more verbose logging with |
Thanks. I'll try to repro later. How can I undo the setting to set what I was prompted for? I figured that had something to do with it. A list verb on gh config would be nice (I'd be happy to contribute one if there's no reason not to add one). |
@heaths The base repo setting can be reset with:
|
We have an issue for I think in addition to anything like |
Could this also be the same problem that is causing
[remote "upstream"]
url = https://github.com/Azure/azure-sdk-for-net.git
fetch = +refs/heads/*:refs/remotes/upstream/*
gh-resolved = base |
Describe the bug
I've been testing
gh
for quite a while now, and even in v0.12.0 when I rangh pr create -w
the branch was pushed to myorigin
remote automatically. I was never asked (my clone usesorigin
for my fork andupstream
for the main). Now in v1.0, I was asked:It listed both endpoints, and since the message above reads, "e.g. for querying issues", I chose
upstream
.It then printed and acted on accordingly,
That's not where my topic branch was even pushed to manually and has a tracking branch set up. I previously ran
git push -u origin issue15108
which completed successfully.Steps to reproduce the behavior
origin
with tracking branch set upgh pr create -w
Expected vs actual behavior
Logs
Nothing more was printed than what I typed above.
The text was updated successfully, but these errors were encountered: