Skip to content

Commit 93b5e44

Browse files
committed
Clone rspec-rails' main branch for sub-builds
1 parent a8a9646 commit 93b5e44

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

ci/script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if is_mri; then
99
clone_repo "rspec-core"
1010
clone_repo "rspec-expectations"
1111
clone_repo "rspec-mocks"
12-
clone_repo "rspec-rails"
12+
clone_repo "rspec-rails" "main"
1313
clone_repo "rspec-support"
1414

1515
popd

ci/script/functions.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ fi
1616

1717
function clone_repo {
1818
if [ ! -d $1 ]; then # don't clone if the dir is already there
19-
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH"
19+
if [ -z "$2" ]; then
20+
BRANCH_TO_CLONE="$MAINTENANCE_BRANCH"
21+
else
22+
BRANCH_TO_CLONE="$2"
23+
fi
24+
25+
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $BRANCH_TO_CLONE"
2026
fi;
2127
}
2228

0 commit comments

Comments
 (0)