]> git.ipfire.org Git - thirdparty/git.git/blobdiff - repository.c
tmp-objdir: disable ref updates when replacing the primary odb
[thirdparty/git.git] / repository.c
index 710a3b4bf872fb0db64f859d5c49d085c198f089..18e0526da01d0edaca084cec0169ef8570b9fae0 100644 (file)
@@ -80,6 +80,8 @@ void repo_set_gitdir(struct repository *repo,
        expand_base_dir(&repo->objects->odb->path, o->object_dir,
                        repo->commondir, "objects");
 
+       repo->objects->odb->disable_ref_updates = o->disable_ref_updates;
+
        free(repo->objects->alternate_db);
        repo->objects->alternate_db = xstrdup_or_null(o->alternate_db);
        expand_base_dir(&repo->graft_file, o->graft_file,