diff options
-rw-r--r-- | remote.c | 2 | ||||
-rwxr-xr-x | t/t5801-remote-helpers.sh | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 && |