(ref string)
| 92 | } |
| 93 | |
| 94 | func (g *gitExecuter) MergeFastForward(ref string) error { |
| 95 | args := []string{"merge", "--ff-only", "--quiet", ref} |
| 96 | cmd, err := g.client.Command(context.Background(), args...) |
| 97 | if err != nil { |
| 98 | return err |
| 99 | } |
| 100 | _, err = cmd.Output() |
| 101 | return err |
| 102 | } |
| 103 | |
| 104 | func (g *gitExecuter) ResetHard(ref string) error { |
| 105 | args := []string{"reset", "--hard", ref} |