From 26b010f917c7237f73bf0fe578290b6bff3c375d Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sat, 02 Feb 2013 14:41:10 +0000 Subject: Pull submodules --- 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: -- cgit v0.9.1