-
-
Notifications
You must be signed in to change notification settings - Fork 146
Change crappy nonstandard name 'upstream' to nice standard name 'origin' #98
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
Conversation
The inconvenience for existing users who have used this script in the past is they'd need to run:
In case their own fork was called origin, they'd need to rename that first, i.e.:
|
How about detecting the existing remote names (using |
I could do that but I hope to remove all Band-Aid in one swoop. |
Change crappy nonstandard name 'upstream' to nice standard name 'origin'
Uh-oh, I sense another github disaster coming. |
@WalterBright: Why would you do so? I think this commit was merged rather hastily, but I don't see how GitHub would really be related to the situation. |
As Andrei said, we're using a really weird naming scheme, so it's good to change this. |
I'm using this setup (and AFAIK so is everyone else) |
@andralex, @MartinNowak: I'm not sure that there are even many people using the script at all, though, so I'm not doubting that merging this might be a good idea. But why the rush on one of the few open pull requests that are actually somewhat controversial? |
The problem is people often just clone git@github.com:D-Programming-Language.git first, and have it as the name origin. Chronologically that must always predate the creation of the fork on it. |
I think https://help.github.com/articles/fork-a-repo has an unusual sequence (fork on the web, THEN initiate any cloning etc - who does that?) |
@klickverbot let's just go through this once. We're not talking about our user base but instead our contributor base, which may in fact be helped in the long term. |
There is a much better solution to this: make the script explicitly update from
Github does that. Deviating from what github recommends is going to make life harder, not easier.
If our contributors can't work out how to rename a remote, they should learn git before contributing. |
@andralex: It's usually how I go about cloning the source code of projects I intend to contribute to. Well, at least how I did before the Also, I realize that we are talking about (potential) contributors, but that's exactly why I'd be cautious about any changes that might cause unnecessary annoyance to existing contributors. |
That's a good idea.
Github does that. Deviating from what github recommends is going to make life harder, not easier. I was asking which person. My perception is that people first clone the original repo (and build, look at the code etc) before getting animated with the desire to push code. I don't think that article is authoritative at all, it's just for noobs.
That wasn't the problem. The problem was "why the heck do they assume I called the repo |
Ok. While you're at it you should probably change |
@yebblies for --tags too? |
No, just the normal pull. |
#100 rox |
Huh, what? I just got an email from @andralex to rename my repo, but I don't see what this pull has to do with anything. I just forked the tools repo (i.e., this one) and checked out my fork, and set 'upstream' to be So, can somebody please explain what's all this ado about? What am I supposed to do? |
@quickfur Exactly what you did. The problem was this script forced that layout when not everybody followed it. It's now changed to not rely on the dpl repo being called upstream, so everyone should be happy. |
Oh. Heh, well I never actually use that script, so I guess it doesn't apply to me? |
Correct. |
I might had some influence in calling the blessed repo upstream, at least I do that and I never read the GitHub help on cloning. The reason is, when you clone form the blessed repo and it becomes origin, then you push by default to it. In a "triangular workflow" (as github has with the pull requests), this is not what you want. Hence you usually use your fork as origin. I guess this is why the GH dudes are recommending this too. Since git 1.8.3 support for the triangular workflow was introduced by adding the config variable I plan to introduce support for the triangular workflow right out of the box in the clone command for the git-hub tool in the next release. |
@llucax terrific stuff, thanks. I've added |
It's all my fault.
Back in the day when we were setting up things at github, someone convinced me everybody uses "upstream" as the mothership repository name. I've gotten zero evidence ever since, but things have remained that way in the scripts.
I don't want to puzzle newcomers by using an unusual naming scheme "just because we do it that way". In the spirit of doing things right and not accumulating cruft I'm submitting this.