diff options
| author | Junio C Hamano <gitster@pobox.com> | 2021-12-21 15:29:45 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2021-12-21 15:29:45 -0800 |
| commit | 504683162642c0db86c844ea37cad339f928ea9c (patch) | |
| tree | 8f4e299d182bb887caf3c07a8f8fce23b3128011 /repository.c | |
| parent | The fourth batch (diff) | |
| parent | tmp-objdir: disable ref updates when replacing the primary odb (diff) | |
| download | git-504683162642c0db86c844ea37cad339f928ea9c.tar.gz git-504683162642c0db86c844ea37cad339f928ea9c.zip | |
Merge branch 'ns/tmp-objdir' into en/remerge-diff
* ns/tmp-objdir:
tmp-objdir: disable ref updates when replacing the primary odb
tmp-objdir: new API for creating temporary writable databases
Diffstat (limited to 'repository.c')
| -rw-r--r-- | repository.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/repository.c b/repository.c index c7ea706c20..34610c5a33 100644 --- a/repository.c +++ b/repository.c @@ -82,6 +82,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, |
