Skip to content

Commit bf2581b

Browse files
authored
Merge pull request #2712 from phansch/shallow_clone_in_integration_tests
Shallow clone in integration tests
2 parents db8cb0b + 3ecac79 commit bf2581b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/integration.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@ function check {
5858

5959
case ${INTEGRATION} in
6060
cargo)
61-
git clone https://github.com/rust-lang/${INTEGRATION}.git
61+
git clone --depth=1 https://github.com/rust-lang/${INTEGRATION}.git
6262
cd ${INTEGRATION}
6363
export CFG_DISABLE_CROSS_TESTS=1
6464
check
6565
cd -
6666
;;
6767
failure)
68-
git clone https://github.com/rust-lang-nursery/${INTEGRATION}.git
68+
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
6969
cd ${INTEGRATION}/failure-1.X
7070
check
7171
cd -
7272
;;
7373
*)
74-
git clone https://github.com/rust-lang-nursery/${INTEGRATION}.git
74+
git clone --depth=1 https://github.com/rust-lang-nursery/${INTEGRATION}.git
7575
cd ${INTEGRATION}
7676
check
7777
cd -

0 commit comments

Comments
 (0)