summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
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 09dcd97a2e..51e844a2de 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -1340,7 +1340,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
transport_ls_refs_options.unborn_head_target = NULL;
create_symref("HEAD", ref, reflog_msg.buf);
} else {
- branch = git_default_branch_name();
+ branch = git_default_branch_name(0);
ref = xstrfmt("refs/heads/%s", branch);
}