summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2016-02-20 21:19:57 +0100
committeranonym <anonym@riseup.net>2016-02-21 01:31:51 +0100
commit199aa274dda4eb6c5f48db535ec2822f3fb79268 (patch)
treee70e76c129b955450faf043c2e9ad8b2597a5851
parent77c250d88f0b782f246db5ac39800c8f17c2f327 (diff)
Initialize submodules when recreating the Git directory in Vagrant.feature/6452-python-scripting
... and Jenkins.
-rwxr-xr-xvagrant/provision/assets/build-tails3
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/provision/assets/build-tails b/vagrant/provision/assets/build-tails
index 5ff9425..2b8b8e1 100755
--- a/vagrant/provision/assets/build-tails
+++ b/vagrant/provision/assets/build-tails
@@ -63,7 +63,7 @@ else
exit 1
fi
fi
- test -d "$WORKSPACE" || git clone /amnesia.git "$WORKSPACE"
+ test -d "$WORKSPACE" || git clone --recurse-submodules /amnesia.git "$WORKSPACE"
cd "$WORKSPACE"
git fetch origin
fi
@@ -71,6 +71,7 @@ fi
cd "$WORKSPACE"
git checkout --force "$REV"
git reset --hard "$COMMIT"
+git submodule update --init
if [ -n "$JENKINS_URL" ]; then
git clean --force -d -x