symlinks: remove PATH_MAX limitation
[gitweb.git] / bisect.c
index 48ccbf118f3bc2e2df837f8579717546a617064e..d6e851d783c3541eb21edd47170ce7a32e082e61 100644 (file)
--- a/bisect.c
+++ b/bisect.c
@@ -684,7 +684,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);
 
@@ -695,6 +694,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);