Merge branch 'jt/avoid-ls-refs'
[gitweb.git] / builtin / commit-graph.c
index 66f12eb009f1e41b6190ca23eb407c84b0f9380a..c02a3f1221d625ad6407317199cc35c7a56a09ba 100644 (file)
@@ -119,6 +119,8 @@ static int graph_read(int argc, const char **argv)
        return 0;
 }
 
+extern int read_replace_refs;
+
 static int graph_write(int argc, const char **argv)
 {
        struct string_list *pack_indexes = NULL;
@@ -149,6 +151,8 @@ static int graph_write(int argc, const char **argv)
        if (!opts.obj_dir)
                opts.obj_dir = get_object_directory();
 
+       read_replace_refs = 0;
+
        if (opts.reachable) {
                write_commit_graph_reachable(opts.obj_dir, opts.append, 1);
                return 0;