commit: fix patch hunk editing with "commit -p -m"
[git/git.git] / builtin / gc.c
index c19545d..7fa717a 100644 (file)
@@ -179,7 +179,7 @@ static int need_to_gc(void)
        else if (!too_many_loose_objects())
                return 0;
 
        else if (!too_many_loose_objects())
                return 0;
 
-       if (run_hook(NULL, "pre-auto-gc", NULL))
+       if (run_hook_le(NULL, "pre-auto-gc", NULL))
                return 0;
        return 1;
 }
                return 0;
        return 1;
 }