File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ func (fe *FastExtractor) Run(repository *git.Repository) chan *GitFile {
105
105
close (fe .ChanGitFiles )
106
106
log .Info ("channel is closed" )
107
107
log .Infof ("finishing iterating over files, we have collected %d files" , num )
108
+
109
+ if err := os .RemoveAll (path ); err != nil {
110
+ log .Errorln ("Unable to remove directory " , path )
111
+ }
108
112
}()
109
113
110
114
return fe .ChanGitFiles
Original file line number Diff line number Diff line change @@ -29,10 +29,6 @@ type ResultGitFilePipelineEvent struct {
29
29
GitFile * GitFile
30
30
}
31
31
32
- // func (rgp *ResultGitFilePipelineEvent) ToJson() {
33
- //
34
- //}
35
-
36
32
// RepositoryPipelineEvent represents an event from a repository.
37
33
type RepositoryPipelineEvent struct {
38
34
// Finished is true if the given repository is pipeline is done
You can’t perform that action at this time.
0 commit comments