From 604b9f3c584b4021281df990be024bfe9d1ef769 Mon Sep 17 00:00:00 2001 From: TJ Holowaychuk Date: Fri, 29 Jun 2012 13:05:42 -0700 Subject: [PATCH] add default of HEAD to git-pull-request --- bin/git-pull-request | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/git-pull-request b/bin/git-pull-request index d760f1a..710f6d1 100755 --- a/bin/git-pull-request +++ b/bin/git-pull-request @@ -31,8 +31,7 @@ test -z "$user" && abort "git config user.email required" # branch -branch=$1 -test -z "$branch" && abort " required" +branch=${1-$(git symbolic-ref HEAD)} # lame hack to get project