aboutsummaryrefslogtreecommitdiff
path: root/git-revert-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-24 16:56:48 -0700
committerJunio C Hamano <junkio@cox.net>2005-08-24 16:56:48 -0700
commit434d6ba03122c160f98713a009cf8a32d02982f3 (patch)
treec4b0963078c63407448b58e961ed81e32a1d14c6 /git-revert-script
parent168cc639adb29616bde22f97f153faa1dfd024eb (diff)
parentc95173410d6f290e65c15232e56f4963f8279ef1 (diff)
downloadgit-434d6ba03122c160f98713a009cf8a32d02982f3.tar.gz
git-434d6ba03122c160f98713a009cf8a32d02982f3.tar.xz
Merge refs/heads/master from .
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)