Skip to content

Commit

Permalink
Fix git-revert
Browse files Browse the repository at this point in the history
Defaulting to $replay for the sake of fixing cherry-pick was not
done conditionally, which broke git-revert.

Noticed by Luben.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Oct 10, 2006
1 parent 9a7a62f commit 96779be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-revert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
case "$0" in
*-revert* )
test -t 0 && edit=-e
replay=
me=revert
USAGE='[--edit | --no-edit] [-n] <commit-ish>' ;;
*-cherry-pick* )
replay=t
edit=
me=cherry-pick
USAGE='[--edit] [-n] [-r] [-x] <commit-ish>' ;;
Expand All @@ -18,7 +20,7 @@ case "$0" in
esac
. git-sh-setup

no_commit= replay=t
no_commit=
while case "$#" in 0) break ;; esac
do
case "$1" in
Expand Down

0 comments on commit 96779be

Please sign in to comment.