Merge branch 'ds/disable-replace-refs' into next
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() pack-bitmap.c: use commit boundary during bitmap traversal pack-bitmap.c: extract `fill_in_bitmap()` object: add object_array initializer helper function
This commit is contained in:
@ -158,7 +158,7 @@ static int add_ref_decoration(const char *refname, const struct object_id *oid,
|
||||
|
||||
if (starts_with(refname, git_replace_ref_base)) {
|
||||
struct object_id original_oid;
|
||||
if (!read_replace_refs)
|
||||
if (!replace_refs_enabled(the_repository))
|
||||
return 0;
|
||||
if (get_oid_hex(refname + strlen(git_replace_ref_base),
|
||||
&original_oid)) {
|
||||
|
Reference in New Issue
Block a user