Merge branch 'jk/core-use-replace-refs'
A new configuration variable core.usereplacerefs has been added, primarily to help server installations that want to ignore the replace mechanism altogether. * jk/core-use-replace-refs: add core.usereplacerefs config option check_replace_refs: rename to read_replace_refs check_replace_refs: fix outdated comment
This commit is contained in:
@ -92,7 +92,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 (!check_replace_refs)
|
||||
if (!read_replace_refs)
|
||||
return 0;
|
||||
if (get_oid_hex(refname + strlen(git_replace_ref_base),
|
||||
&original_oid)) {
|
||||
|
||||
Reference in New Issue
Block a user