aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sunshine <sunshine@sunshineco.com>2014-12-31 10:50:07 +0100
committerAlberto Bertogli <albertito@blitiri.com.ar>2015-01-11 22:18:10 +0100
commitaaf2968538121f9443f1aea2156814fede5a5648 (patch)
tree5a131eb25b94e6ea87a37dce190406468b950307
parent420afd3206d59ca76309087234f838edb32d7b8b (diff)
downloadgit-arr-fork-aaf2968538121f9443f1aea2156814fede5a5648.zip
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 <sunshine@sunshineco.com> Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
-rwxr-xr-xgit-arr2
1 files changed, 1 insertions, 1 deletions
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/<repo:repo>/c/<cid:re:[0-9a-z]{5,40}>/')
+@bottle.route('/r/<repo:repo>/c/<cid:re:[0-9a-f]{5,40}>/')
@bottle.view('commit')
@with_utils
def commit(repo, cid):