diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c
index 78a88f74769645f0be86aa77d3dee3f5e99c916f..70f5622d9d49aae4080b38ee4487cc6e403a9d2c 100644 (file)
--- a/builtin-ls-remote.c
+++ b/builtin-ls-remote.c
pattern[j - i] = p;
}
}
- remote = nongit ? NULL : remote_get(dest);
- if (remote && !remote->url_nr)
+ remote = remote_get(dest);
+ if (!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);