File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,15 @@ setup_repos()
7474 git merge -m " Automatic merge" $current_branch
7575 fi
7676
77- clone https://github.com/dlang/dmd.git ../dmd $base_branch --depth 1
78- clone https://github.com/dlang/druntime.git ../druntime $base_branch --depth 1
77+ for proj in dmd druntime ; do
78+ if [ $base_branch != master ] && [ $base_branch != stable ] &&
79+ ! git ls-remote --exit-code --heads https://github.com/dlang/$proj .git $base_branch > /dev/null; then
80+ # use master as fallback for other repos to test feature branches
81+ clone https://github.com/dlang/$proj .git ../$proj master --depth 1
82+ else
83+ clone https://github.com/dlang/$proj .git ../$proj $base_branch --depth 1
84+ fi
85+ done
7986
8087 # load environment for bootstrap compiler
8188 source " $( CURL_USER_AGENT=\" $CURL_USER_AGENT \" bash ~ /dlang/install.sh dmd-$HOST_DMD_VER --activate) "
You can’t perform that action at this time.
0 commit comments