Skip to content

Commit

Permalink
Fixed git checkout to define a tmp directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarlso committed Jul 8, 2018
1 parent 2331b9b commit 1a9fd29
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions pipeline/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ import (

func TestGitCloneRepo(t *testing.T) {
repo := &gaia.GitRepo{
URL: "https://github.com/gaia-pipeline/gaia",
URL: "https://github.com/gaia-pipeline/gaia",
LocalDest: "tmp",
}
// always ensure that tmp folder is cleaned up
defer os.RemoveAll("tmp")
err := gitCloneRepo(repo)
if err != nil {
t.Fatal(err)
}

// clean up
err = os.RemoveAll("tmp")
if err != nil {
t.Fatal(err)
}
}

0 comments on commit 1a9fd29

Please sign in to comment.