summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-12-18 15:15:17 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-18 15:15:17 -0800
commit772bdcd4296b259d52aafb0badd79872e9db3bb3 (patch)
treedac15d162ac6aae28d0e3cfdd287d66767621c21 /builtin/clone.c
parentMerge https://github.com/prati0100/git-gui (diff)
parentinit: provide useful advice about init.defaultBranch (diff)
downloadtgif-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.c2
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);