Skip to content

Commit

Permalink
Merge pull request #195 from Revolyssup/bug
Browse files Browse the repository at this point in the history
Fix gitwalker bug
  • Loading branch information
Revolyssup authored Jul 25, 2022
2 parents 0a6a54d + 5c329a8 commit de874a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/walker/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ func clonewalk(g *Git) error {
path := filepath.Join(path, g.root, f.Name())
if f.IsDir() && g.dirInterceptor != nil {
name := f.Name()
go func(name string, path string) {
go func(name string, path string, filename string) {
err := g.dirInterceptor(Directory{
Name: f.Name(),
Name: filename,
Path: path,
})
if err != nil {
fmt.Println(err.Error())
}
}(name, path)
}(name, path, f.Name())
continue
}
if f.IsDir() {
Expand Down

0 comments on commit de874a5

Please sign in to comment.