add default of HEAD to git-pull-request

This commit is contained in:
TJ Holowaychuk 2012-06-29 13:05:42 -07:00
parent d489ee24f5
commit 604b9f3c58

View file

@ -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