Mercurial > kallithea
diff rhodecode/config/routing.py @ 2822:1670ee0aded7 beta
fixed issue #559 fixed bug in routing that mapped repo names with <name>_<num> in name as
if it was a request to url by repository ID
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Sep 2012 18:00:31 +0200 |
parents | 23e797c9496e |
children | f7a52d548fd0 2f3cba7b6d16 |
line wrap: on
line diff
--- a/rhodecode/config/routing.py Fri Sep 07 17:53:14 2012 +0200 +++ b/rhodecode/config/routing.py Fri Sep 07 18:00:31 2012 +0200 @@ -34,7 +34,7 @@ try: by_id = repo_name.split('_') - if len(by_id) == 2 and by_id[1].isdigit(): + if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '': repo_name = Repository.get(by_id[1]).repo_name match_dict['repo_name'] = repo_name except: