Skip to content

Commit 4eb4e7f

Browse files
authored
Merge pull request #837 from jldugger/jldugger/pr-remote-default
add a default for the remote to fetch a pr from
2 parents acf4123 + 9e843da commit 4eb4e7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/git-pr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ if test "$1" = "clean"; then
5959
done
6060

6161
elif [[ "$1" =~ ^[0-9]+$ ]]; then
62-
remote=${2:-origin}
62+
remote_pref=${2:-$(git config --get git-extras.pr.remote)}
63+
remote=${remote_pref:-origin}
6364
id=$1
6465
branch=pr/$id
6566
pull "$remote" "$id" "$branch"

0 commit comments

Comments
 (0)