File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ source script/functions.sh
7
7
8
8
pushd ..
9
9
10
- clone_repo " rspec"
10
+ clone_repo " rspec-metagem " " rspec "
11
11
clone_repo " rspec-core"
12
12
clone_repo " rspec-expectations"
13
13
clone_repo " rspec-mocks"
Original file line number Diff line number Diff line change @@ -54,8 +54,14 @@ function documentation_enforced {
54
54
}
55
55
56
56
function clone_repo {
57
- if [ ! -d $1 ]; then # don't clone if the dir is already there
58
- ci_retry eval " git clone https://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH "
57
+ if [ -z " $2 " ]; then
58
+ DIR_TARGET=" $1 "
59
+ else
60
+ DIR_TARGET=" $2 "
61
+ fi
62
+
63
+ if [ ! -d $DIR_TARGET ]; then # don't clone if the dir is already there
64
+ ci_retry eval " git clone https://github.com/rspec/$1 --depth 1 --branch $MAINTENANCE_BRANCH $DIR_TARGET "
59
65
fi ;
60
66
}
61
67
You can’t perform that action at this time.
0 commit comments