t5541-http-push.sh: add test for unmatched, non-fast-forwarded refs
[gitweb.git] / builtin-ls-remote.c
index d625df2f4e6c44f1986b0a090d923e7fee78878e..70f5622d9d49aae4080b38ee4487cc6e403a9d2c 100644 (file)
@@ -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)