[cig-commits] r22781 - cs/buildbot/trunk/buildbot/slave

brad at geodynamics.org brad at geodynamics.org
Thu Sep 12 18:26:31 PDT 2013


Author: brad
Date: 2013-09-12 18:26:30 -0700 (Thu, 12 Sep 2013)
New Revision: 22781

Modified:
   cs/buildbot/trunk/buildbot/slave/commands.py
Log:
Added --recursive flag to git clone so submodules will be cloned as well.

Modified: cs/buildbot/trunk/buildbot/slave/commands.py
===================================================================
--- cs/buildbot/trunk/buildbot/slave/commands.py	2013-09-09 15:42:03 UTC (rev 22780)
+++ cs/buildbot/trunk/buildbot/slave/commands.py	2013-09-13 01:26:30 UTC (rev 22781)
@@ -1755,9 +1755,9 @@
         d = os.path.join(self.builder.basedir, self.srcdir)
         os.mkdir(d)
         if self.branch:
-            command = ['git', 'clone', '--branch', self.branch, self.repourl, '.']
+            command = ['git', 'clone', '--recursive', '--branch', self.branch, self.repourl, '.']
         else:
-            command = ['git', 'clone', self.repourl, '.']
+            command = ['git', 'clone', '--recursive', self.repourl, '.']
         c = ShellCommand(self.builder, command, d,
                          sendRC=False, timeout=self.timeout)
         self.command = c



More information about the CIG-COMMITS mailing list