summaryrefslogtreecommitdiff
path: root/git-branch-script
diff options
context:
space:
mode:
Diffstat (limited to 'git-branch-script')
-rwxr-xr-xgit-branch-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-branch-script b/git-branch-script
index a6dfeaf55f..0ecbd239ac 100755
--- a/git-branch-script
+++ b/git-branch-script
@@ -25,7 +25,7 @@ case "$#" in
head="$2^0" ;;
esac
branchname="$1"
-rev=$(git-rev-parse --revs-only --verify "$head") || exit
+rev=$(git-rev-parse --verify "$head") || exit
[ -e "$GIT_DIR/refs/heads/$branchname" ] && die "$branchname already exists"