diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-10 11:46:29 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-10 11:46:29 -0700 |
commit | fd0d7036e0da248f354e91fb8be8771fb20adfac (patch) | |
tree | 2fe4ef0cec6a9724df9fa5e15860bb0867fc817c /builtin/clone.c | |
parent | Merge branch 'mk/clone-recurse-submodules' (diff) | |
parent | advice: move advice.graftFileDeprecated squashing to commit.[ch] (diff) | |
download | tgif-fd0d7036e0da248f354e91fb8be8771fb20adfac.tar.xz |
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
Diffstat (limited to 'builtin/clone.c')
-rw-r--r-- | builtin/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/clone.c b/builtin/clone.c index 9c0c68a8ef..b93bcd460e 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -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 { |