Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 6aca48f

Browse files
committed
Clone rspec-rails from 4-0-maintenance
1 parent 29b71b7 commit 6aca48f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

script/clone_all_rspec_repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if is_mri; then
1212
clone_repo "rspec-core"
1313
clone_repo "rspec-expectations"
1414
clone_repo "rspec-mocks"
15-
clone_repo "rspec-rails"
15+
clone_repo "rspec-rails" "4-0-maintenance"
1616

1717
if rspec_support_compatible; then
1818
clone_repo "rspec-support"

script/functions.sh

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

2020
function clone_repo {
2121
if [ ! -d $1 ]; then # don't clone if the dir is already there
22-
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH"
22+
if [ -z "$2" ]; then
23+
BRANCH_TO_CLONE="$MAINTENANCE_BRANCH"
24+
else
25+
BRANCH_TO_CLONE="$2"
26+
fi
27+
28+
travis_retry eval "git clone https://github.com/rspec/$1 --depth 1 --branch $BRANCH_TO_CLONE"
2329
fi;
2430
}
2531

0 commit comments

Comments
 (0)