From 4f18630a8fb3213d7ef21833c1d2709b32a21d11 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 28 Sep 2025 20:22:27 +0530 Subject: [PATCH] check ts too --- src/node/utils/getGitTimestamp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/utils/getGitTimestamp.ts b/src/node/utils/getGitTimestamp.ts index 15259261..84475fc4 100644 --- a/src/node/utils/getGitTimestamp.ts +++ b/src/node/utils/getGitTimestamp.ts @@ -94,7 +94,7 @@ class GitLogParser extends Transform { ts: Number.parseInt(ts, 10) * 1000, files: this.#files.slice() } - if (rec.files.length > 0) this.push(rec) + if (rec.ts > 0 && rec.files.length > 0) this.push(rec) this.#tsBytes.length = 0 this.#fileBytes.length = 0