Skip to content

Commit

Permalink
add a default for the remote to fetch a pr from
Browse files Browse the repository at this point in the history
  • Loading branch information
jldugger committed May 13, 2020
1 parent db3389a commit 322cc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-pr
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if test "$1" = "clean"; then
done

elif [[ "$1" =~ ^[0-9]+$ ]]; then
remote=${2:-origin}
remote=${2:-$(git config --default origin --get git-extras.pr.remote)}
id=$1
branch=pr/$id
pull "$remote" "$id" "$branch"
Expand Down

0 comments on commit 322cc47

Please sign in to comment.