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()
This commit is contained in:
@ -156,7 +156,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