diff options
author | Junio C Hamano <junkio@cox.net> | 2005-08-24 14:31:36 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-24 14:31:36 -0700 |
commit | ff84d327dfb8a9aa0634b0aaaca1c018cdc5117a (patch) | |
tree | 93b27df73edfff4d55a439200a728c26c1976cd2 /git-revert-script | |
parent | Rationalize output selection in rev-parse. (diff) | |
download | tgif-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-x | git-revert-script | 2 |
1 files changed, 1 insertions, 1 deletions
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) |