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/unpack-objects.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/unpack-objects.c')
| -rw-r--r-- | builtin/unpack-objects.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/unpack-objects.c b/builtin/unpack-objects.c index 2c52c3a741..0b4fe803cc 100644 --- a/builtin/unpack-objects.c +++ b/builtin/unpack-objects.c @@ -609,7 +609,7 @@ int cmd_unpack_objects(int argc, const char **argv, const char *prefix UNUSED) int i; struct object_id oid; - read_replace_refs = 0; + disable_replace_refs(); git_config(git_default_config, NULL); |
