diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-04-15 13:50:16 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-04-15 13:50:16 -0700 |
| commit | a8c207797f2fe624c4959487e3508dde96f68976 (patch) | |
| tree | 6933bb5b61b08cc9adf218024a19a4651f6fd525 /refs.c | |
| parent | Merge branch 'ds/maintenance-loose-objects-batchsize' (diff) | |
| parent | advice: allow disabling default branch name advice (diff) | |
| download | git-a8c207797f2fe624c4959487e3508dde96f68976.tar.gz git-a8c207797f2fe624c4959487e3508dde96f68976.zip | |
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
Diffstat (limited to 'refs.c')
| -rw-r--r-- | refs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
