Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--devbot/git.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/devbot/git.py b/devbot/git.py
index c5bdd44..21b2273 100644
--- a/devbot/git.py
+++ b/devbot/git.py
@@ -46,6 +46,10 @@ class Module:
else:
command.run(["git", "checkout", self._branch])
+ if os.path.exists(".gitmodules"):
+ command.run(["git", "submodule", "init"])
+ command.run(["git", "submodule", "update"])
+
def update(self, revision=None):
if not os.path.exists(os.path.join(self.local, ".git")):
self._clone()
@@ -70,6 +74,9 @@ class Module:
command.run(["git", "merge", "--ff-only",
"origin/%s" % self._branch])
+ if os.path.exists(".gitmodules"):
+ command.run(["git", "submodule", "update"])
+
@_chdir
def checkout(self, revision=None):
if revision is None: