Basic build infrastructure for Python scripts
[gitweb.git] / builtin-ls-remote.c
index 78a88f74769645f0be86aa77d3dee3f5e99c916f..d625df2f4e6c44f1986b0a090d923e7fee78878e 100644 (file)
@@ -89,7 +89,7 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix)
        remote = nongit ? NULL : remote_get(dest);
        if (remote && !remote->url_nr)
                die("remote %s has no configured URL", dest);
-       transport = transport_get(remote, remote ? remote->url[0] : dest);
+       transport = transport_get(remote, NULL);
        if (uploadpack != NULL)
                transport_set_option(transport, TRANS_OPT_UPLOADPACK, uploadpack);