diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-06-22 16:29:05 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-06-22 16:29:06 -0700 |
| commit | d9f9f6b358c4d8aad492bc4995be0926048a6248 (patch) | |
| tree | 62cf18a137ffecb83675d7d5dda4f2f43d33253d /builtin/cat-file.c | |
| parent | f2ffc7418685f75e43e2919426276141fd62c656 (diff) | |
| parent | 9c7d1b057ff36ee4190621d46e9fe3c83377aea7 (diff) | |
| download | git-d9f9f6b358c4d8aad492bc4995be0926048a6248.tar.gz | |
Merge branch 'ds/disable-replace-refs'
Introduce a mechanism to disable replace refs globally and per
repository.
* ds/disable-replace-refs:
repository: create read_replace_refs setting
replace-objects: create wrapper around setting
repository: create disable_replace_refs()
Diffstat (limited to 'builtin/cat-file.c')
| -rw-r--r-- | builtin/cat-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 0bafc14e6c..27f070267a 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -805,7 +805,7 @@ static int batch_objects(struct batch_options *opt) if (repo_has_promisor_remote(the_repository)) warning("This repository uses promisor remotes. Some objects may not be loaded."); - read_replace_refs = 0; + disable_replace_refs(); cb.opt = opt; cb.expand = &data; |
