Skip to content

Commit

Permalink
Merge 2262db3 into 41cd799
Browse files Browse the repository at this point in the history
  • Loading branch information
bpineau committed May 13, 2018
2 parents 41cd799 + 2262db3 commit 3527054
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/execute_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func TestRootCmd(t *testing.T) {
"/dev/null",
"--dry-run",
"--dump-only",
"--no-git",
"--api-server",
"http://192.0.2.1", // RFC 5737 reserved/unroutable
"--log-level",
Expand Down
2 changes: 1 addition & 1 deletion pkg/recorder/recorder.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (w *Listener) save(file string, data []byte) error {
return fmt.Errorf("can't create local directory %s: %v", dir, err)
}

tmpf, err := afero.TempFile(appFs, "", "katafygio")
tmpf, err := afero.TempFile(appFs, dir, ".temp-katafygio-")
if err != nil {
return fmt.Errorf("failed to create a temporary file: %v", err)
}
Expand Down
5 changes: 5 additions & 0 deletions pkg/store/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ func (s *Store) CloneOrInit() (err error) {
s.Email, s.LocalDir, err)
}

err = afero.WriteFile(appFs, s.LocalDir+"/.git/info/exclude", []byte(".temp-katafygio-*"), 0644)
if err != nil {
return fmt.Errorf("failed to create a git exclusion: %v", err)
}

return nil
}

Expand Down

0 comments on commit 3527054

Please sign in to comment.