mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
Merge branch 'jt/clone-guess-remote-head-fix'
"git clone" still gave the message about the default branch name; this message has been turned into an advice message that can be turned off. * jt/clone-guess-remote-head-fix: advice: allow disabling default branch name advice builtin/clone: suppress unexpected default branch advice remote: allow `guess_remote_head()` to suppress advice
This commit is contained in:
3
refs.c
3
refs.c
@@ -664,7 +664,8 @@ char *repo_default_branch_name(struct repository *r, int quiet)
|
||||
if (!ret) {
|
||||
ret = xstrdup("master");
|
||||
if (!quiet)
|
||||
advise(_(default_branch_name_advice), ret);
|
||||
advise_if_enabled(ADVICE_DEFAULT_BRANCH_NAME,
|
||||
_(default_branch_name_advice), ret);
|
||||
}
|
||||
|
||||
full_ref = xstrfmt("refs/heads/%s", ret);
|
||||
|
||||
Reference in New Issue
Block a user