Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot
diff options
context:
space:
mode:
Diffstat (limited to 'devbot')
-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")):