summaryrefslogtreecommitdiff
path: root/klaus/__init__.py
diff options
context:
space:
mode:
authorChris St. Pierre <cstpierr@cisco.com>2017-06-08 07:57:29 -0500
committerChris St. Pierre <cstpierr@cisco.com>2017-06-08 07:59:21 -0500
commit0942738337a50c8bdbdd2b16b4fe6a3ad2f7b71e (patch)
tree5f9b365966723076bbcf1b2d31307c41bc692580 /klaus/__init__.py
parentbe69325b9b7620d65f4842da2c8aae8bb683272e (diff)
Add rev path element to index
This makes the branch/tag selector dropdown work on the index page. With the index page not supporting a rev path element, it was passed as a query parameter which was silently ignored.
Diffstat (limited to 'klaus/__init__.py')
-rw-r--r--klaus/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/klaus/__init__.py b/klaus/__init__.py
index 0bf0b3a..036fada 100644
--- a/klaus/__init__.py
+++ b/klaus/__init__.py
@@ -60,6 +60,7 @@ class Klaus(flask.Flask):
('patch', '/<repo>/commit/<rev>.diff'),
('patch', '/<repo>/commit/<rev>.patch'),
('index', '/<repo>/'),
+ ('index', '/<repo>/<path:rev>'),
('history', '/<repo>/tree/<rev>/'),
('history', '/<repo>/tree/<rev>/<path:path>'),
('download', '/<repo>/tarball/<rev>/'),