From c76de36260c960a44ac13f210a7ac6666057da16 Mon Sep 17 00:00:00 2001 From: Michał Łyszczek Date: Sun, 16 May 2021 15:09:05 +0200 Subject: test-compilation.sh: improve code to not bash git clone server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no_ci Signed-off-by: Michał Łyszczek --- test-compilation.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test-compilation.sh b/test-compilation.sh index 800b745..e53bf85 100755 --- a/test-compilation.sh +++ b/test-compilation.sh @@ -17,7 +17,7 @@ prepare() project_dir="${3}" # clone - if ! git clone git://git.bofc.pl/"${project}" "${project}-${slot}" + if ! git clone "${project}-base" "${project}-${slot}" then echo "couldn't clone, sorry" exit 1 @@ -160,6 +160,13 @@ do slots+="${i} " done +# we will clone $job-number times, no need to bash the server with so much +# clone jobs, clone once and then we will use that local repo to clone from +if ! git clone git://git.bofc.pl/"${project}" "${project}-base"; then + echo "couldn't clone, sorry" + exit 1 +fi + # run preparation parallel --output-as-files --bar --results "${workdir}" \ --halt-on-error now,fail=1 --jobs ${num_jobs} \ -- cgit v1.2.3-8-gadcc