mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
add a default for the remote to fetch a pr from
This commit is contained in:
parent
db3389a3cc
commit
9e843da98d
|
|
@ -59,7 +59,8 @@ if test "$1" = "clean"; then
|
|||
done
|
||||
|
||||
elif [[ "$1" =~ ^[0-9]+$ ]]; then
|
||||
remote=${2:-origin}
|
||||
remote_pref=${2:-$(git config --get git-extras.pr.remote)}
|
||||
remote=${remote_pref:-origin}
|
||||
id=$1
|
||||
branch=pr/$id
|
||||
pull "$remote" "$id" "$branch"
|
||||
|
|
|
|||
Loading…
Reference in a new issue