File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments