From 47aa3271be7a46948024bfe134a9cdf48e1bcd5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=87=AF90331?= <90331@sangfor.com> Date: Fri, 15 May 2026 15:38:08 +0800 Subject: [PATCH] fix(raw-dump): reverse commit order to prevent duplicate uploads Add --reverse to git log in getCommitLog so commits are returned oldest-first. Previously, git log defaulted to newest-first, causing the loop in uploadCommits to overwrite state with the oldest commit. The next run then queried git log ..HEAD, re-fetching all already-uploaded commits and triggering infinite duplicate uploads. Co-Authored-By: Claude Opus 4.7 --- src/services/rawDump/git.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/rawDump/git.ts b/src/services/rawDump/git.ts index ed351726b..ba8c13a03 100644 --- a/src/services/rawDump/git.ts +++ b/src/services/rawDump/git.ts @@ -96,12 +96,12 @@ export async function getCommitLog(cwd: string, lastCommit?: string): Promise