diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-04-26 13:16:18 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-06-21 08:05:13 +0200 |
commit | c2c95ad0a210be4811c247be51664bfe8b2e830a (patch) | |
tree | 105f461533fe18a8cc061a41749fdf4e2babfcd4 /tests/online/clone.c | |
parent | 15e119375018fba121cf58e02a9f17fe22df0df8 (diff) | |
download | libgit2-c2c95ad0a210be4811c247be51664bfe8b2e830a.tar.gz |
tests: online::clone: use URL of test server
All our tests running against a local SSH server usually read the
server's URL from environment variables. But online::clone::ssh_cert
test fails to do so and instead always connects to
"ssh://localhost/foo". This assumption breaks whenever the SSH server is
not running on the standard port, e.g. when it is running as a user.
Fix the issue by using the URL provided by the environment.
Diffstat (limited to 'tests/online/clone.c')
-rw-r--r-- | tests/online/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index 04fd22d45..5eda73f87 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -547,7 +547,7 @@ void test_online_clone__ssh_cert(void) if (!_remote_ssh_fingerprint) cl_skip(); - cl_git_fail_with(GIT_EUSER, git_clone(&g_repo, "ssh://localhost/foo", "./foo", &g_options)); + cl_git_fail_with(GIT_EUSER, git_clone(&g_repo, _remote_url, "./foo", &g_options)); } static char *read_key_file(const char *path) |