Skip to content

Commit 4824d1b

Browse files
devzero2000gitster
authored andcommitted
bisect.c: reduce scope of variable
Signed-off-by: Elia Pinto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ac93028 commit 4824d1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bisect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,6 @@ static void mark_expected_rev(char *bisect_rev_hex)
685685

686686
static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
687687
{
688-
int res;
689688

690689
mark_expected_rev(bisect_rev_hex);
691690

@@ -696,6 +695,7 @@ static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
696695
die("update-ref --no-deref HEAD failed on %s",
697696
bisect_rev_hex);
698697
} else {
698+
int res;
699699
res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
700700
if (res)
701701
exit(res);

0 commit comments

Comments
 (0)