Skip to content

Commit 7474690

Browse files
committed
try fetch --depth 100 in fuzzer
1 parent c4b88dd commit 7474690

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/test/fuzzer/run-fuzzer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@ function clone
4242
(
4343
cd "$repo_dir"
4444
if [ "$PR_TO_TEST" != "0" ]; then
45-
if git fetch --depth 1 origin "+refs/pull/$PR_TO_TEST/merge"; then
45+
if git fetch --depth 100 origin "+refs/pull/$PR_TO_TEST/merge"; then
4646
git checkout FETCH_HEAD
4747
echo "Checked out pull/$PR_TO_TEST/merge ($(git rev-parse FETCH_HEAD))"
4848
else
49-
git fetch --depth 1 origin "+refs/pull/$PR_TO_TEST/head"
49+
git fetch --depth 100 origin "+refs/pull/$PR_TO_TEST/head"
5050
git checkout "$SHA_TO_TEST"
5151
echo "Checked out nominal SHA $SHA_TO_TEST for PR $PR_TO_TEST"
5252
fi
5353
# Use BASE_BRANCH from environment variable if available, otherwise fall back to master
5454
if [ -n "$BASE_BRANCH" ]; then
5555
echo "Using base branch from environment: $BASE_BRANCH"
5656
# Fetch the specific base branch first (without depth limit to allow merge-base)
57-
git fetch origin "$BASE_BRANCH" || {
57+
git fetch origin --depth 100 "$BASE_BRANCH" || {
5858
echo "ERROR: Could not fetch base branch: $BASE_BRANCH"
5959
echo "Available remote branches:"
6060
git branch -r

0 commit comments

Comments
 (0)