Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/devbot/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'devbot/git.py')
-rw-r--r--devbot/git.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/devbot/git.py b/devbot/git.py
index cb361ef..960fd7c 100644
--- a/devbot/git.py
+++ b/devbot/git.py
@@ -46,7 +46,7 @@ class Module:
else:
command.run(["git", "checkout", self._branch])
- def update(self):
+ def update(self, revision=None):
if not os.path.exists(os.path.join(self.local, ".git")):
self._clone()
return
@@ -55,7 +55,9 @@ class Module:
command.run(["git", "fetch"], retry=self._retry)
- if self.tag:
+ if revision:
+ command.run(["git", "checkout", revision])
+ elif self.tag:
command.run(["git", "checkout", self.tag])
else:
command.run(["git", "merge", "--ff-only",