From 0de3ff0782bebc64793b7c18c29afd9c00e86eb4 Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@googlemail.com>
Date: Tue, 4 Nov 2014 00:07:22 +0100
Subject: [PATCH] refs #6429 clean submodules before fetching any data
 [skip-ci]

---
 plugins/TestRunner/Runner/Remote.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/TestRunner/Runner/Remote.php b/plugins/TestRunner/Runner/Remote.php
index 6525e9fae7..49127c45f9 100644
--- a/plugins/TestRunner/Runner/Remote.php
+++ b/plugins/TestRunner/Runner/Remote.php
@@ -28,10 +28,10 @@ class Remote
         $this->ssh->exec('git reset --hard');
         $this->ssh->exec('git submodule foreach --recursive git reset --hard');
         $this->ssh->exec('git clean -d -f');
+        $this->ssh->exec('git submodule foreach git clean -f');
         $this->ssh->exec('git fetch --all');
         $this->ssh->exec('git checkout ' . trim($gitHash));
         $this->ssh->exec('git submodule update --recursive --force');
-        $this->ssh->exec('git submodule foreach git clean -f');
         $this->ssh->exec('composer.phar install');
     }
 
-- 
GitLab