mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
add default of HEAD to git-pull-request
This commit is contained in:
parent
d489ee24f5
commit
604b9f3c58
|
|
@ -31,8 +31,7 @@ test -z "$user" && abort "git config user.email required"
|
|||
|
||||
# branch
|
||||
|
||||
branch=$1
|
||||
test -z "$branch" && abort "<branch> required"
|
||||
branch=${1-$(git symbolic-ref HEAD)}
|
||||
|
||||
# lame hack to get project
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue