diff options
Diffstat (limited to 'builtin-ls-remote.c')
-rw-r--r-- | builtin-ls-remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin-ls-remote.c b/builtin-ls-remote.c index d625df2f4e..70f5622d9d 100644 --- a/builtin-ls-remote.c +++ b/builtin-ls-remote.c @@ -86,8 +86,8 @@ int cmd_ls_remote(int argc, const char **argv, const char *prefix) 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, NULL); if (uploadpack != NULL) |