bisect.c: reduce scope of variable
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elia Pinto committed
Jan 29, 2014 at 05:25 UTC
4824d1b8c2d0e9e6a549c836aa6a7698fdba021b
1 file changed
+1
-1
bisect.c
+1
-1
@@ -685,7 +685,6 @@ static void mark_expected_rev(char *bisect_rev_hex)
685
686
static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
687
{
688
- int res;
688
689
mark_expected_rev(bisect_rev_hex);
690
@@ -696,6 +695,7 @@ static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
695
die("update-ref --no-deref HEAD failed on %s",
696
bisect_rev_hex);
697
} else {
698
+ int res;
699
res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
700
if (res)
701
exit(res);