Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): filter blobs from duplication history fetches (#128393)

posthog[bot]b09b7903c3d3
diff --git a/.github/workflows/ci-duplication.yml b/.github/workflows/ci-duplication.yml
index fb6b10ea031d..5aa170874140 100644
--- a/.github/workflows/ci-duplication.yml
+++ b/.github/workflows/ci-duplication.yml
@@ -37,10 +37,10 @@ jobs:
# any small fixed depth; deepen until it resolves, with a cap.
run: |
for depth in 200 2000 20000; do
- git fetch --no-tags --depth=$depth origin "$BASE_REF:refs/remotes/origin/$BASE_REF"
+ git fetch --no-tags --filter=blob:none --depth=$depth origin "$BASE_REF:refs/remotes/origin/$BASE_REF"
# The checked-out PR ref is shallow too; deepen its side as well
# or merge-base never resolves.
- git fetch --no-tags --depth=$depth origin "$GITHUB_REF"
+ git fetch --no-tags --filter=blob:none --depth=$depth origin "$GITHUB_REF"
if git merge-base "origin/$BASE_REF" HEAD > /dev/null 2>&1; then
break
fi