aboutsummaryrefslogtreecommitdiff
path: root/git-revert-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-24 14:31:36 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-24 14:31:36 -0700
commitff84d327dfb8a9aa0634b0aaaca1c018cdc5117a (patch)
tree93b27df73edfff4d55a439200a728c26c1976cd2 /git-revert-script
parent4866ccf0f434db118c4dcdeeab840eb4844d50a4 (diff)
downloadgit-ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a.tar.gz
git-ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a.tar.xz
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-revert-script')
-rwxr-xr-xgit-revert-script2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-revert-script b/git-revert-script
index dc2dea489..22f2082fb 100755
--- a/git-revert-script
+++ b/git-revert-script
@@ -10,7 +10,7 @@ case "$status" in
die "Your working tree is dirty; cannot revert a previous patch." ;;
esac
-rev=$(git-rev-parse --no-flags --verify --revs-only "$@") &&
+rev=$(git-rev-parse --verify "$@") &&
commit=$(git-rev-parse --verify "$rev^0") || exit
if git-diff-tree -R -M -p $commit | git-apply --index &&
msg=$(git-rev-list --pretty=oneline --max-count=1 $commit)