Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2013-02-02 14:41:10 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2013-02-02 14:41:10 (GMT)
commit26b010f917c7237f73bf0fe578290b6bff3c375d (patch)
treef13a10fbb872cd507f11c1ced73fa38fcf51de1a
parente317080e5e7c7c75c84ed0d991f12ed5c5a5f421 (diff)
Pull submodules
-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: