Fix git-revert
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>
Junio C Hamano committed
Oct 9, 2006 at 19:19 UTC
96779be48a8e5d3a50a07e0fcab942e7066235a9
1 file changed
+3
-1
git-revert.sh
+3
-1
@@ -7,9 +7,11 @@
7
case "$0" in
8
*-revert* )
9
test -t 0 && edit=-e
10
+ replay=
11
me=revert
12
USAGE='[--edit | --no-edit] [-n] <commit-ish>' ;;
13
*-cherry-pick* )
14
+ replay=t
15
edit=
16
me=cherry-pick
17
USAGE='[--edit] [-n] [-r] [-x] <commit-ish>' ;;
@@ -18,7 +20,7 @@ case "$0" in
20
esac
21
. git-sh-setup
22
21
-no_commit= replay=t
23
+no_commit=
24
while case "$#" in 0) break ;; esac
25
do
26
case "$1" in