Skip to content

Commit a398834

Browse files
sbryngelsonclaude
andcommitted
Fix shallow clone: deepen history for git merge-base in CI
git fetch --depth=1 alone doesn't provide enough history for merge-base to find a common ancestor. Add --deepen=200 to expand the shallow clone so --only-changes can compute the correct diff. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent da7aa27 commit a398834

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ jobs:
137137
uses: actions/checkout@v4
138138

139139
- name: Fetch master for coverage diff
140-
run: git fetch origin master:master --depth=1
140+
run: |
141+
git fetch origin master:master --depth=1
142+
git fetch --deepen=200
141143
continue-on-error: true
142144

143145
- name: Download Coverage Cache

0 commit comments

Comments
 (0)