File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if is_mri; then
9
9
clone_repo " rspec-core"
10
10
clone_repo " rspec-expectations"
11
11
clone_repo " rspec-mocks"
12
- clone_repo " rspec-rails"
12
+ clone_repo " rspec-rails" " main "
13
13
clone_repo " rspec-support"
14
14
15
15
popd
Original file line number Diff line number Diff line change 16
16
17
17
function clone_repo {
18
18
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 "
20
26
fi ;
21
27
}
22
28
You can’t perform that action at this time.
0 commit comments