Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Simplify test command creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jpignata committed Jan 3, 2018
1 parent 6b8670f commit 61b4f1b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions git/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 61b4f1b

Please sign in to comment.