Skip to content
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

Meta: simplify advice for pr/* branches #1847

Merged
merged 1 commit into from
Oct 4, 2016
Merged

Conversation

foolip
Copy link
Member

@foolip foolip commented Oct 3, 2016

Also fix the indentation.

(Omit the `+` sign; it’s just `diff` syntax to get the markdown viewer to highlight the line.)
If you change your mind later about globally enabling that behavior, you can disable it by removing those lines.

* Alternatively, to enable automatic fetch of branches in PRs from forks **just for this repo**, omit `--global` from the above command.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above command does not contain --global?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" is the command, can you take a look at the rendered view and see if it's clear enough there?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. How does that work though if it is in your .config file? There is nothing relating that to any repo.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to run the command in the right repo and it'll update .git/config. I think if you run the command outside a repo it'll fail, so I think mentioning it would be unnecessarily wordy, but can do so if you think it'd help anyone.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh okay. I guess I'll just defer to @sideshowbarker then. He should probably review this anyway since he added it.

@domenic
Copy link
Member

domenic commented Oct 3, 2016

LGTM, with "Meta:" instead of "Editorial:" I guess. Will let @sideshowbarker sign off.

@foolip
Copy link
Member Author

foolip commented Oct 3, 2016

Oh, commit messages is where I'd seen "Meta:", I was looking for it when I filed #1849

Also fix the indentation.
@foolip foolip changed the title Editorial: simplify advice for pr/* branches Meta: simplify advice for pr/* branches Oct 3, 2016
@sideshowbarker sideshowbarker merged commit 0728e5a into master Oct 4, 2016
@sideshowbarker sideshowbarker deleted the simplify-pr-advice branch October 4, 2016 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants