gitCommit commits files with a message
(t *testing.T, repoDir, message string)
| 54 | |
| 55 | // gitCommit commits files with a message |
| 56 | func gitCommit(t *testing.T, repoDir, message string) { |
| 57 | cmd := exec.Command("git", "commit", "-m", message) |
| 58 | cmd.Dir = repoDir |
| 59 | require.NoError(t, cmd.Run(), "failed to git commit") |
| 60 | } |
| 61 | |
| 62 | // gitCommitAndGetSHA commits files and returns the commit SHA |
| 63 | func gitCommitAndGetSHA(t *testing.T, repoDir, message string) string { |
no outgoing calls