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