bisect.c: reduce scope of variable
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
ac930287ff
commit
4824d1b8c2
2
bisect.c
2
bisect.c
@ -685,7 +685,6 @@ static void mark_expected_rev(char *bisect_rev_hex)
|
|||||||
|
|
||||||
static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
|
static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
|
||||||
{
|
{
|
||||||
int res;
|
|
||||||
|
|
||||||
mark_expected_rev(bisect_rev_hex);
|
mark_expected_rev(bisect_rev_hex);
|
||||||
|
|
||||||
@ -696,6 +695,7 @@ static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
|
|||||||
die("update-ref --no-deref HEAD failed on %s",
|
die("update-ref --no-deref HEAD failed on %s",
|
||||||
bisect_rev_hex);
|
bisect_rev_hex);
|
||||||
} else {
|
} else {
|
||||||
|
int res;
|
||||||
res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
|
res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
|
||||||
if (res)
|
if (res)
|
||||||
exit(res);
|
exit(res);
|
||||||
|
Loading…
Reference in New Issue
Block a user