[go-xml PATCH] test: Clone libvirt.git via https:// instead of git://

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux