Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-30 16:05:27 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-30 16:05:27 (GMT)
commit1716fecb0cc123b607d549fb581a0e02908cba97 (patch)
tree3096550224e7c16975ee7e21aaafed1c28e51bbd
parent4f98fe10ea482fad3fffe9d655d26139dea30965 (diff)
Handle tag on a clone too
-rw-r--r--devbot/git.py5
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")):