diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-25 02:34:09 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-12-25 02:34:09 (GMT) |
commit | 0d0a7194226215703c5536fdae4993a4d4a81816 (patch) | |
tree | 10de369d72784edccaab9a34f7eb28911288c9ee /devbot/config.py | |
parent | d450954d31df8d22c96ccd76d6af1d983266a2d4 (diff) |
Refactor to put get_commit_id in the git module
Diffstat (limited to 'devbot/config.py')
-rw-r--r-- | devbot/config.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/devbot/config.py b/devbot/config.py index 93c82f7..dba6709 100644 --- a/devbot/config.py +++ b/devbot/config.py @@ -5,7 +5,6 @@ import pkgutil import tempfile from devbot import distro -from devbot import utils from devbot import plugins from devbot import git @@ -51,12 +50,6 @@ class Module: def get_build_dir(self): return os.path.join(get_build_dir(), self.name) - def get_commit_id(self, tag="HEAD"): - if not os.path.exists(self.get_source_dir()): - return None - - return utils.get_commit_id(self.get_source_dir()) - def get_git_module(self): return git.Module(path=get_source_dir(), name=self.name, remote=self.repo, branch=self.branch, tag=self.tag, @@ -77,13 +70,6 @@ def _ensure_dir(dir): if not os.path.exists(dir): os.mkdir(dir) -def get_commit_id(): - commit_id = utils.get_commit_id(config_dir) - if commit_id is None: - commit_id = "snapshot" - - return commit_id - def setup(**kwargs): _load_plugins() |