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

add a default for the remote to fetch a pr from #837

Merged
merged 1 commit into from
May 16, 2020

Conversation

jldugger
Copy link
Contributor

As discussed in #835, a one-liner to fetch a default remote from config.

Testing:

$ git remote
origin
upstream
$ git config git-extras.pr.remote "upstream"
$ cat .git/config
<snip>
[git-extras "pr"]
	remote = upstream
$ ./bin/git-pr 800
remote: Enumerating objects: 44, done.
remote: Counting objects: 100% (44/44), done.
remote: Total 59 (delta 43), reused 43 (delta 43), pack-reused 15
Unpacking objects: 100% (59/59), 24.49 KiB | 338.00 KiB/s, done.
From github.com:tj/git-extras
 * [new ref]         refs/pull/800/head -> pr/800
Switched to branch 'pr/800'

@jldugger jldugger force-pushed the jldugger/pr-remote-default branch from 322cc47 to 9e843da Compare May 14, 2020 07:34
@jldugger
Copy link
Contributor Author

Previously used --default which was incompatible with git-extra's declared dependency on git 2.6.1+. That is now resolved.

@spacewander spacewander merged commit 4eb4e7f into tj:master May 16, 2020
@spacewander
Copy link
Collaborator

@jldugger
Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants