summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--remote.c2
-rwxr-xr-xt/t5801-remote-helpers.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/remote.c b/remote.c
index b7262964fb..5fa046c8f8 100644
--- a/remote.c
+++ b/remote.c
@@ -32,7 +32,7 @@ struct counted_string {
static int valid_remote(const struct remote *remote)
{
- return (!!remote->url.nr) || (!!remote->foreign_vcs);
+ return !!remote->url.nr;
}
static char *alias_url(const char *url, struct rewrites *r)
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
index 7c8c4359aa..20f43f7b7d 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -53,7 +53,7 @@ test_expect_success 'fetch with configured remote.*.vcs' '
test_grep remote-testgit vcs-fetch.trace
'
-test_expect_failure 'vcs remote with no url' '
+test_expect_success 'vcs remote with no url' '
NOURL_UPSTREAM=$PWD/server &&
export NOURL_UPSTREAM &&
git init vcs-nourl &&