aboutsummaryrefslogtreecommitdiff
path: root/plans/testplan2html.py
diff options
context:
space:
mode:
Diffstat (limited to 'plans/testplan2html.py')
-rw-r--r--plans/testplan2html.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/plans/testplan2html.py b/plans/testplan2html.py
index b463492..d8b8219 100644
--- a/plans/testplan2html.py
+++ b/plans/testplan2html.py
@@ -86,6 +86,8 @@ def test_exists(test, repositories, args):
os.chdir(repositories[test['repository']])
if 'revision' in test.keys():
subprocess.call(['git', 'checkout', test['revision']])
+ elif 'branch' in test.keys():
+ subprocess.call(['git', 'checkout', test['branch']])
else:
# if no revision is specified, use current HEAD
output = subprocess.check_output(['git', 'rev-parse', 'HEAD'])