(ctx context.Context, commit string)
| 283 | } |
| 284 | |
| 285 | func gitCommit(ctx context.Context, commit string) error { |
| 286 | cmd := exec.CommandContext(ctx, "git", "commit", "-am", commit) |
| 287 | if out, err := cmd.CombinedOutput(); err != nil { |
| 288 | return fmt.Errorf("git commit (%s): %s", err, string(out)) |
| 289 | } |
| 290 | return nil |
| 291 | } |
| 292 | |
| 293 | // verifyReleaseRef ensures HEAD is exactly the tip of the remote default branch |
| 294 | // before any tags are created. |