(p []byte)
| 28 | } |
| 29 | |
| 30 | func (t ProgressWrapper) Write(p []byte) (n int, err error) { |
| 31 | s := string(p) |
| 32 | |
| 33 | if strings.HasPrefix(s, "Counting objects:") || strings.HasPrefix(s, "Compressing objects:") { |
| 34 | return len(p), nil |
| 35 | } |
| 36 | |
| 37 | t.Logger.Log(string(p)) |
| 38 | return len(p), nil |
| 39 | } |
| 40 | |
| 41 | func (c GoGitClient) getAuthMethod(r GitRepository) (transport.AuthMethod, error) { |
| 42 | switch r.Repository.SSHKey.Type { |
no test coverage detected