diff options
-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")): |