diff --git a/gitssg.go b/gitssg.go index 2e75034..f2e03c4 100644 --- a/gitssg.go +++ b/gitssg.go @@ -362,7 +362,7 @@ func generateRepo(path string, logLimit int) error { slog.Debug("Processing commit", "hash", c.Hash) - if i > logLimit { + if logLimit != 0 && i > logLimit { remaining++ slog.Debug("Limit reached while processing log", "iteration", i, "remaining", remaining) continue