diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-30 16:05:27 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-30 16:05:27 (GMT) |
commit | 1716fecb0cc123b607d549fb581a0e02908cba97 (patch) | |
tree | 3096550224e7c16975ee7e21aaafed1c28e51bbd /devbot | |
parent | 4f98fe10ea482fad3fffe9d655d26139dea30965 (diff) |
Handle tag on a clone too
Diffstat (limited to 'devbot')
-rw-r--r-- | devbot/git.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/devbot/git.py b/devbot/git.py index e0519da..b9008af 100644 --- a/devbot/git.py +++ b/devbot/git.py @@ -25,7 +25,10 @@ class Module: os.chdir(self.local) - command.run(["git", "checkout", self._branch]) + if self.tag: + command.run(["git", "checkout", self.tag]) + else: + command.run(["git", "checkout", self._branch]) def update(self): if not os.path.exists(os.path.join(self.local, ".git")): |