diff --git a/git/main_test.go b/git/main_test.go index c454292..6228c05 100644 --- a/git/main_test.go +++ b/git/main_test.go @@ -27,10 +27,9 @@ func TestGetShortSha(t *testing.T) { os.Chdir(dir) defer os.Chdir(cwd) - gitInit := exec.Command("git", "init") - gitInit.Run() + exec.Command("git", "init").Run() - gitCommit := exec.Command("git", "commit", "--allow-empty", "--allow-empty-message", "--message", "''") + gitCommit := exec.Command("git", "commit", "--allow-empty", "--message", "dummy commit") commitOutput, err := gitCommit.CombinedOutput() if err != nil {