From ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 24 Aug 2005 14:31:36 -0700 Subject: Audit rev-parse users again. Some callers to rev-parse were using the output selection flags inconsistently. Signed-off-by: Junio C Hamano --- git-revert-script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-revert-script') diff --git a/git-revert-script b/git-revert-script index dc2dea4898..22f2082fb1 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) -- cgit v1.2.1