aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/repo_stats.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/git/repo_stats.go')
-rw-r--r--modules/git/repo_stats.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/git/repo_stats.go b/modules/git/repo_stats.go
index 41f94e24f9..ce82946873 100644
--- a/modules/git/repo_stats.go
+++ b/modules/git/repo_stats.go
@@ -124,6 +124,10 @@ func (repo *Repository) GetCodeActivityStats(fromTime time.Time, branch string)
}
}
}
+ err = scanner.Err()
+ if err != nil {
+ return fmt.Errorf("scan: %w", err)
+ }
a := make([]*CodeActivityAuthor, 0, len(authors))
for _, v := range authors {
a = append(a, v)