(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func TestRemoteConnectOption(t *testing.T) { |
| 85 | t.Parallel() |
| 86 | repo := createTestRepo(t) |
| 87 | defer cleanupTestRepo(t, repo) |
| 88 | |
| 89 | config, err := repo.Config() |
| 90 | checkFatal(t, err) |
| 91 | err = config.SetString("url.git@github.com:.insteadof", "https://github.com/") |
| 92 | checkFatal(t, err) |
| 93 | |
| 94 | option, err := DefaultRemoteCreateOptions() |
| 95 | checkFatal(t, err) |
| 96 | option.Name = "origin" |
| 97 | option.Flags = RemoteCreateSkipInsteadof |
| 98 | |
| 99 | remote, err := repo.Remotes.CreateWithOptions("https://github.com/libgit2/TestGitRepository", option) |
| 100 | checkFatal(t, err) |
| 101 | defer remote.Free() |
| 102 | |
| 103 | err = remote.ConnectFetch(nil, nil, nil) |
| 104 | checkFatal(t, err) |
| 105 | } |
| 106 | |
| 107 | func TestRemoteLs(t *testing.T) { |
| 108 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…