diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-12-18 15:15:17 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-12-18 15:15:17 -0800 |
commit | 772bdcd4296b259d52aafb0badd79872e9db3bb3 (patch) | |
tree | dac15d162ac6aae28d0e3cfdd287d66767621c21 /builtin/clone.c | |
parent | Merge https://github.com/prati0100/git-gui (diff) | |
parent | init: provide useful advice about init.defaultBranch (diff) | |
download | tgif-772bdcd4296b259d52aafb0badd79872e9db3bb3.tar.xz |
Merge branch 'js/init-defaultbranch-advice'
Our users are going to be trained to prepare for future change of
init.defaultBranch configuration variable.
* js/init-defaultbranch-advice:
init: provide useful advice about init.defaultBranch
get_default_branch_name(): prepare for showing some advice
branch -m: allow renaming a yet-unborn branch
init: document `init.defaultBranch` better
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 a5630337e4..e335734b4c 100644 --- a/builtin/clone.c +++ b/builtin/clone.c @@ -1326,7 +1326,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix) remote_head = NULL; option_no_checkout = 1; if (!option_bare) { - const char *branch = git_default_branch_name(); + const char *branch = git_default_branch_name(0); char *ref = xstrfmt("refs/heads/%s", branch); install_branch_config(0, branch, remote_name, ref); |