Skip to content

Commit

Permalink
bisect.c: reduce scope of variable
Browse files Browse the repository at this point in the history
Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Elia Pinto authored and Junio C Hamano committed Jan 31, 2014
1 parent ac93028 commit 4824d1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bisect.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,6 @@ static void mark_expected_rev(char *bisect_rev_hex)

static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
{
int res;

mark_expected_rev(bisect_rev_hex);

Expand All @@ -696,6 +695,7 @@ static int bisect_checkout(char *bisect_rev_hex, int no_checkout)
die("update-ref --no-deref HEAD failed on %s",
bisect_rev_hex);
} else {
int res;
res = run_command_v_opt(argv_checkout, RUN_GIT_CMD);
if (res)
exit(res);
Expand Down

0 comments on commit 4824d1b

Please sign in to comment.