aboutsummaryrefslogtreecommitdiff
path: root/tests/repository-location
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-07 21:27:36 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-08 16:32:56 +0300
commit3b064176e467f690a94544d511be2fe57a8f48c4 (patch)
tree8dc3a275b1a41bf27e36ca516d3c4189206e34f8 /tests/repository-location
parent66931be8c547d99a5d5ca679d39694669d6e13b9 (diff)
Add support for ssh:// git protocol
Diffstat (limited to 'tests/repository-location')
-rw-r--r--tests/repository-location/driver.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/repository-location/driver.cxx b/tests/repository-location/driver.cxx
index dc1ecb7..c2153ff 100644
--- a/tests/repository-location/driver.cxx
+++ b/tests/repository-location/driver.cxx
@@ -480,6 +480,14 @@ namespace bpkg
assert (l.type () == repository_type::git);
}
{
+ repository_location l (loc ("ssh://example.com/test.git#master",
+ repository_type::git));
+ assert (l.string () == "ssh://example.com/test.git#master");
+ assert (l.canonical_name () == "git:example.com/test#master");
+ assert (l.proto () == proto::ssh);
+ assert (l.type () == repository_type::git);
+ }
+ {
repository_location l (loc ("http://example.com/test.git#master",
repository_type::git));
assert (l.string () == "http://example.com/test.git#master");