clone: set transport->verbose when -v/--verbose is used
authorTay Ray Chuan <rctay89@gmail.com>
Fri, 25 Dec 2009 17:12:05 +0000 (01:12 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Dec 2009 02:49:19 +0000 (18:49 -0800)
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clone.c

index caf3025031d83dc860b22c7798dd5f40b6b89ed2..2d8bf5120ec60e05d7a9fb5fefc96e154d57881a 100644 (file)
@@ -524,8 +524,10 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
 
                if (option_quiet)
                        transport->verbose = -1;
-               else if (option_verbose)
+               else if (option_verbose) {
+                       transport->verbose = 1;
                        transport->progress = 1;
+               }
 
                if (option_upload_pack)
                        transport_set_option(transport, TRANS_OPT_UPLOADPACK,