diff options
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) |