Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/git.py
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-12-27 17:29:10 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-12-27 17:29:10 (GMT)
commit8a64d0947bb9a3afcc303015ee4bd8835be03a62 (patch)
tree456d39919b824464b5d9cb24115ba9728915d7bd /devbot/git.py
parent6ab02c1f23631f8e87615610ed811bc4bf31accc (diff)
Refactor to avoid circular dependency
Diffstat (limited to 'devbot/git.py')
-rw-r--r--devbot/git.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/devbot/git.py b/devbot/git.py
index 4e7d86c..f2da84d 100644
--- a/devbot/git.py
+++ b/devbot/git.py
@@ -3,6 +3,7 @@ import subprocess
from devbot import command
from devbot import utils
+from devbot import config
_root_path = None
@@ -128,6 +129,15 @@ def set_root_path(path):
_root_path = path
+def get_module(module):
+ return Module(path=config.get_source_dir(),
+ name=module.name,
+ remote=module.repo,
+ branch=module.branch,
+ tag=module.tag,
+ retry=10)
+
+
def get_root_module():
remote = "git://git.sugarlabs.org/sugar-build/sugar-build.git"