gitAdd adds a file to git staging area
(t *testing.T, repoDir, file string)
| 47 | |
| 48 | // gitAdd adds a file to git staging area |
| 49 | func gitAdd(t *testing.T, repoDir, file string) { |
| 50 | cmd := exec.Command("git", "add", file) |
| 51 | cmd.Dir = repoDir |
| 52 | require.NoError(t, cmd.Run(), "failed to git add %s", file) |
| 53 | } |
| 54 | |
| 55 | // gitCommit commits files with a message |
| 56 | func gitCommit(t *testing.T, repoDir, message string) { |
no outgoing calls