From aaf2968538121f9443f1aea2156814fede5a5648 Mon Sep 17 00:00:00 2001 From: Eric Sunshine Date: Wed, 31 Dec 2014 04:50:07 -0500 Subject: [PATCH] route: commit: match only hexadecimal rather than digits + full alphabet A human-readable representation of a Git SHA1 commit ID is composed only of hexadecimal digits, thus there is no need to match against the full alphabet. Signed-off-by: Eric Sunshine Signed-off-by: Alberto Bertogli --- git-arr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-arr b/git-arr index b9c9d46..bd38324 100755 --- a/git-arr +++ b/git-arr @@ -217,7 +217,7 @@ def summary(repo): def branch(repo, bname, offset = 0): return dict(repo = repo.new_in_branch(bname), offset = offset) -@bottle.route('/r//c//') +@bottle.route('/r//c//') @bottle.view('commit') @with_utils def commit(repo, cid):