The git:// protocol can cause issues when the client is
behind a corporate firewall; https:// works in pretty much
any scenario, and these days it's basically as efficient.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
xml_test.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xml_test.go b/xml_test.go
index dcec589..2a2e16f 100644
--- a/xml_test.go
+++ b/xml_test.go
@@ -388,7 +388,7 @@ func syncGit(t *testing.T) {
_, err := os.Stat("testdata/libvirt/tests")
if err != nil {
if os.IsNotExist(err) {
- msg, err := exec.Command("git", "clone", "--depth",
"1", "git://libvirt.org/libvirt.git",
"testdata/libvirt").CombinedOutput()
+ msg, err := exec.Command("git", "clone", "--depth",
"1", "https://libvirt.org/git/libvirt.git",
"testdata/libvirt").CombinedOutput()
if err != nil {
t.Fatal(fmt.Errorf("Unable to clone libvirt.git: %s: %s", err, msg))
}
--
2.17.0
Show replies by date