TestCloneWithExternalHTTPUrl
(t *testing.T)
| 74 | |
| 75 | // TestCloneWithExternalHTTPUrl |
| 76 | func TestCloneWithExternalHTTPUrl(t *testing.T) { |
| 77 | |
| 78 | path, err := ioutil.TempDir("", "git2go") |
| 79 | defer os.RemoveAll(path) |
| 80 | |
| 81 | // clone the repo |
| 82 | url := "https://github.com/libgit2/TestGitRepository" |
| 83 | _, err = Clone(url, path, &CloneOptions{}) |
| 84 | if err != nil { |
| 85 | t.Fatal("cannot clone remote repo via https, error: ", err) |
| 86 | } |
| 87 | } |