summaryrefslogtreecommitdiff
path: root/git-branch-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-24 21:31:36 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-24 21:31:36 (GMT)
commitff84d327dfb8a9aa0634b0aaaca1c018cdc5117a (patch)
tree93b27df73edfff4d55a439200a728c26c1976cd2 /git-branch-script
parent4866ccf0f434db118c4dcdeeab840eb4844d50a4 (diff)
downloadgit-ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a.zip
git-ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a.tar.gz
git-ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a.tar.bz2
Audit rev-parse users again.
Some callers to rev-parse were using the output selection flags inconsistently. Signed-off-by: Junio C Hamano <junkio@cox.net>
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 a6dfeaf..0ecbd23 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"