From 16257f25d7fc5054807eaf8c395040ec7941f170 Mon Sep 17 00:00:00 2001 From: Slim B Date: Sat, 14 Feb 2026 14:19:56 +0300 Subject: [PATCH] Fix reverse sync false positive after filter reconciliation Add --ancestry-path to git log in reverse_sync() to prevent old subrepo history from leaking through reconciliation merge parents. Without this, every old subrepo commit appears as a "human commit" triggering a spurious 0-commit PR on the monorepo. Co-Authored-By: Claude Opus 4.6 --- lib/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sync.sh b/lib/sync.sh index b2ff277..d24d454 100644 --- a/lib/sync.sh +++ b/lib/sync.sh @@ -244,7 +244,7 @@ reverse_sync() { # 3. Find new human commits (excludes bot commits from forward sync) local human_commits - human_commits=$(git log "mono-filtered/${mono_branch}..HEAD" \ + human_commits=$(git log --ancestry-path "mono-filtered/${mono_branch}..HEAD" \ --oneline --invert-grep --grep="^${BOT_TRAILER}:" 2>/dev/null || echo "") if [ -z "$human_commits" ]; then