Skip to content

Commit 5bf6668

Browse files
committed
Merge branch 'mh/clone-verbosity-fix'
Git 2.4 broke setting verbosity and progress levels on "git clone" with native transports. * mh/clone-verbosity-fix: clone: call transport_set_verbosity before anything else on the newly created transport
2 parents cc77b99 + 822f0c4 commit 5bf6668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,8 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
907907

908908
remote = remote_get(option_origin);
909909
transport = transport_get(remote, remote->url[0]);
910+
transport_set_verbosity(transport, option_verbosity, option_progress);
911+
910912
path = get_repo_path(remote->url[0], &is_bundle);
911913
is_local = option_local != 0 && path && !is_bundle;
912914
if (is_local) {
@@ -933,8 +935,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
933935
if (option_single_branch)
934936
transport_set_option(transport, TRANS_OPT_FOLLOWTAGS, "1");
935937

936-
transport_set_verbosity(transport, option_verbosity, option_progress);
937-
938938
if (option_upload_pack)
939939
transport_set_option(transport, TRANS_OPT_UPLOADPACK,
940940
option_upload_pack);

0 commit comments

Comments
 (0)