Skip to content

Commit 610fcbb

Browse files
Fix counting of total commits
Signed-off-by: Shreeya Patel <[email protected]>
1 parent bc57a19 commit 610fcbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/kernel-build-and-test-x86_64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ jobs:
409409
run: |
410410
BASE_BRANCH="${{ needs.compare-results.outputs.base_branch }}"
411411
if [ -n "$BASE_BRANCH" ]; then
412-
# Fetch just the base branch tip (shallow)
413-
git fetch --depth=1 origin "$BASE_BRANCH:refs/remotes/origin/$BASE_BRANCH" || true
412+
# Fetch base branch with enough history to find common ancestor
413+
git fetch --depth=200 origin "$BASE_BRANCH:refs/remotes/origin/$BASE_BRANCH" || true
414414
echo "Fetched base branch: $BASE_BRANCH"
415415
fi
416416

0 commit comments

Comments
 (0)