grep: use return value of strbuf_detach()
[gitweb.git] / builtin / gc.c
index be8e0bfcbe0a428f72c5762ff8a066baaefd2533..305fb0f45af3bdfc32e15bcc18acdcaa6af205cb 100644 (file)
@@ -687,7 +687,8 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
 
        if (gc_write_commit_graph &&
            write_commit_graph_reachable(get_object_directory(),
-                                        !quiet && !daemonized ? COMMIT_GRAPH_PROGRESS : 0))
+                                        !quiet && !daemonized ? COMMIT_GRAPH_WRITE_PROGRESS : 0,
+                                        NULL))
                return 1;
 
        if (auto_gc && too_many_loose_objects())