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/pack-objects.c | |
| parent | Merge branch 'tb/pack-bitmap-traversal-with-boundary' (diff) | |
| parent | repository: create read_replace_refs setting (diff) | |
| download | git-d9f9f6b358c4d8aad492bc4995be0926048a6248.tar.gz git-d9f9f6b358c4d8aad492bc4995be0926048a6248.zip | |
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/pack-objects.c')
| -rw-r--r-- | builtin/pack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index 9cfc8801f9..3af2d84f58 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -4284,7 +4284,7 @@ int cmd_pack_objects(int argc, const char **argv, const char *prefix) if (DFS_NUM_STATES > (1 << OE_DFS_STATE_BITS)) BUG("too many dfs states, increase OE_DFS_STATE_BITS"); - read_replace_refs = 0; + disable_replace_refs(); sparse = git_env_bool("GIT_TEST_PACK_SPARSE", -1); if (the_repository->gitdir) { |
