[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] bin/fakeroot_foreign_worker.sh: also checkout submodules

Holger Levsen gitlab at salsa.debian.org
Thu Nov 26 23:08:54 GMT 2020



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
fe5ee8ec by Johannes 'josch' Schauer at 2020-11-27T00:08:36+01:00
bin/fakeroot_foreign_worker.sh: also checkout submodules

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/fakeroot_foreign_worker.sh


Changes:

=====================================
bin/fakeroot_foreign_worker.sh
=====================================
@@ -14,11 +14,12 @@ sudo mkdir -p $TARGET/
 sudo chown -R jenkins:jenkins $TARGET/
 
 if [ ! -d $TARGET/fakeroot-foreign ]; then
-	git clone $REPO_URL $TARGET/fakeroot-foreign
+	git clone --recurse $REPO_URL $TARGET/fakeroot-foreign
 else
 	git -C $TARGET/fakeroot-foreign status || /bin/true
 	git -C $TARGET/fakeroot-foreign fetch
 	git -C $TARGET/fakeroot-foreign reset --hard origin/master
+	git -C $TARGET/fakeroot-foreign submodule update --init
 fi
 
 sh $TARGET/fakeroot-foreign/run.sh



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fe5ee8ecf67b571741f7251c4a7ee4453ee889cc

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/fe5ee8ecf67b571741f7251c4a7ee4453ee889cc
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20201126/b2dc421c/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list