(remote, ref string)
| 54 | } |
| 55 | |
| 56 | func (g *gitExecuter) Fetch(remote, ref string) error { |
| 57 | args := []string{"fetch", "-q", remote, ref} |
| 58 | cmd, err := g.client.AuthenticatedCommand(context.Background(), git.AllMatchingCredentialsPattern, args...) |
| 59 | if err != nil { |
| 60 | return err |
| 61 | } |
| 62 | return cmd.Run() |
| 63 | } |
| 64 | |
| 65 | func (g *gitExecuter) HasLocalBranch(branch string) bool { |
| 66 | return g.client.HasLocalBranch(context.Background(), branch) |
nothing calls this directly
no test coverage detected