Skip to content

Commit

Permalink
Fix gitwalker bug
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Tiwari <[email protected]>
  • Loading branch information
Revolyssup committed Jul 25, 2022
1 parent 0a6a54d commit 5c329a8
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 5c329a8

Please sign in to comment.