From 3b064176e467f690a94544d511be2fe57a8f48c4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 7 Nov 2018 21:27:36 +0300 Subject: Add support for ssh:// git protocol --- tests/repository-location/driver.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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"); -- cgit v1.1