File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ do-plumbing-clone() {
4
4
local use_ssh=" $1 "
5
5
local site=" $2 "
6
6
local package=" $3 "
7
- local ref=" $5 "
7
+ local ref=" $4 "
8
8
9
9
ensure.nonZero ' use_ssh' " $use_ssh "
10
10
ensure.nonZero ' site' " $site "
@@ -22,7 +22,7 @@ do-plumbing-clone() {
22
22
fi
23
23
24
24
if [ -n " $ref " ]; then
25
- gitArgs+=(-b " $ref " )
25
+ gitArgs+=(--branch " $ref " )
26
26
fi
27
27
28
28
if [ " $use_ssh " = " true" ]; then
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ load 'util/init.sh'
8
8
run do-plumbing-clone false site username/package version
9
9
10
10
assert_success
11
- assert_output " git clone --recursive --depth=1 -b version https://site/username/package.git $BPM_PACKAGES_PATH /username/package"
11
+ assert_output " git clone --recursive --depth=1 --branch version https://site/username/package.git $BPM_PACKAGES_PATH /username/package"
12
12
}
13
13
14
14
@test " does nothing if package is already present" {
You can’t perform that action at this time.
0 commit comments