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
Remote url when checking out branch #576
Comments
I do not know how pull requests appear but I do not see any inconsistency in what you have pasted. You checked out a branch in refs/remotes/magnars and it is therefore tracking magnars. Why is that unexpected? |
This is how I noticed it. I wanted to check out a remote pull request branch, make a change and push it to my origin repo.
But now when I push, it will be the remote repo, not my origin. Has this been changed or am I drunk? |
Where do pull requests appear? If they appear in your repo what you say should work. You pull from your repo so the upstream is your repo. However, from the "trace" you gave it seems that you grabbed the pull request directly from magnars remote instead of taking it from the pull request in your own repo. In which case the branch's upstream is magnars. |
If my last comment does not answer your question please do a quick pull request to http://github.com/dudebout/foo so that I can see what they look like from the other side ;-) |
Since I have to add the remote repo, I would say they do not live in my repo. (I made a PR to foo) |
Thanks for the PR. From the email I received
it is clear that the pull request (in your case) lives in magnars. From that point you have two ways of testing the PR:
Are you sure you did not use the other method in the past? If not, I cannot explain the change in behavior. |
Sound reasonable. Since I cant say exactly what changed, I'm closing this and reopen if I have a more detailed problem description. Thanks for the help! |
Hi,
In a recent update of Magit, the remote user changed when checking out a new remote branch, so:
f a
(since that user repo was already added)b b
to check out that branch locallyThis is the output:
In magit it looks like this:
As you can see, the remote url is
https://github.com/magnars/ecukes.git
. It has always before beenhttps://github.com/rejeep/ecukes.git
(magnars
=>rejeep
).Why is this?
The text was updated successfully, but these errors were encountered: