grep: use return value of strbuf_detach()
[gitweb.git] / builtin / gc.c
index c18efadda53e54f0e80dbd16737e2d40f47fa16f..305fb0f45af3bdfc32e15bcc18acdcaa6af205cb 100644 (file)
@@ -687,7 +687,7 @@ 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;