From 8a64d0947bb9a3afcc303015ee4bd8835be03a62 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Thu, 27 Dec 2012 17:29:10 +0000 Subject: Refactor to avoid circular dependency --- (limited to 'devbot/git.py') 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" -- cgit v0.9.1