From 741709c8d50d9f163f78855b457676f327fb2942 Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sun, 14 Jul 2024 12:02:31 +0200 Subject: [PATCH] Go through the entire repo if no log limit has been set --- gitssg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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