From 14150f158fbc46a9c5664b974359fbc4907f5ade Mon Sep 17 00:00:00 2001
From: Steffen Vogel <post@steffenvogel.de>
Date: Fri, 29 Dec 2017 11:22:24 +0100
Subject: [PATCH] fix CI

---
 fpga/.gitlab-ci.yml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fpga/.gitlab-ci.yml b/fpga/.gitlab-ci.yml
index 68e545a06..f726ace65 100644
--- a/fpga/.gitlab-ci.yml
+++ b/fpga/.gitlab-ci.yml
@@ -5,6 +5,10 @@ variables:
   DOCKER_TAG_DEV: ${CI_COMMIT_REF_NAME}
   DOCKER_IMAGE_DEV: villas/fpga-dev
 
+# For some reason, GitLab CI prunes the contents of the submodules so we need to restore them.
+before_script:
+  - git submodule foreach git checkout .
+
 stages:
   - prepare
   - build