Files given on the command line are relative to $cwd
[gitweb.git] / builtin-clone.c
index 7ee82752699f837f89fcbea06b1a20aa286ae6cb..863b22eeb2d22f031a9243155ba9df7be9a3b119 100644 (file)
@@ -473,6 +473,10 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
                if (option_quiet)
                        transport->verbose = -1;
 
+               if (option_upload_pack)
+                       transport_set_option(transport, TRANS_OPT_UPLOADPACK,
+                                            option_upload_pack);
+
                refs = transport_get_remote_refs(transport);
                transport_fetch_refs(transport, refs);
        }