Skip to content

Commit

Permalink
Merge pull request #73 from DEVELOPEST/CORE-72
Browse files Browse the repository at this point in the history
  • Loading branch information
kilpkonn authored Jan 11, 2022
2 parents d993e1a + d98ed57 commit cc80a33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scm/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func DiffParentCommit(childCommit *git.Commit) (CommitStats, error) {
var files []string

err := childTree.Walk(
func(s string, entry *git.TreeEntry) int {
func(s string, entry *git.TreeEntry) error {
switch entry.Filemode {
case git.FilemodeTree:
// directory where file entry is located
Expand All @@ -334,7 +334,7 @@ func DiffParentCommit(childCommit *git.Commit) (CommitStats, error) {
files = append(files, filepath.Join(path, entry.Name))
fileCnt++
}
return 0
return nil
})

if err != nil {
Expand Down

0 comments on commit cc80a33

Please sign in to comment.