Skip to content

Commit

Permalink
Merge 6986c23 into 41cd799
Browse files Browse the repository at this point in the history
  • Loading branch information
bpineau committed May 13, 2018
2 parents 41cd799 + 6986c23 commit 02f4410
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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 02f4410

Please sign in to comment.