worktree: teach 'add' to respect --force for registered but missing path
[gitweb.git] / commit-graph.c
index 0034740c26b48eda147d45258505df278b84cc0a..8a1bec7b8aa420dd3d4ecadc95dee31029533c07 100644 (file)
@@ -730,7 +730,7 @@ void write_commit_graph(const char *obj_dir,
                                die(_("error adding pack %s"), packname.buf);
                        if (open_pack_index(p))
                                die(_("error opening index for %s"), packname.buf);
-                       for_each_object_in_pack(p, add_packed_commits, &oids);
+                       for_each_object_in_pack(p, add_packed_commits, &oids, 0);
                        close_pack(p);
                }
                strbuf_release(&packname);