Merge branch 'ab/retire-advice-config'
Code clean up to migrate callers from older advice_config[] based API to newer advice_if_enabled() and advice_enabled() API. * ab/retire-advice-config: advice: move advice.graftFileDeprecated squashing to commit.[ch] advice: remove use of global advice_add_embedded_repo advice: remove read uses of most global `advice_` variables advice: add enum variants for missing advice variables
This commit is contained in:
@ -786,7 +786,7 @@ static int checkout(int submodule_progress)
|
||||
return 0;
|
||||
}
|
||||
if (!strcmp(head, "HEAD")) {
|
||||
if (advice_detached_head)
|
||||
if (advice_enabled(ADVICE_DETACHED_HEAD))
|
||||
detach_advice(oid_to_hex(&oid));
|
||||
FREE_AND_NULL(head);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user