##// END OF EJS Templates
added global fix for stripping multiple slashes from f_path variable
marcink -
r3040:ec483ce6 beta
parent child Browse files
Show More
@@ -32,6 +32,10 b' def make_map(config):'
32 from rhodecode.model.db import Repository
32 from rhodecode.model.db import Repository
33 repo_name = match_dict.get('repo_name')
33 repo_name = match_dict.get('repo_name')
34
34
35 if match_dict.get('f_path'):
36 #fix for multiple initial slashes that causes errors
37 match_dict['f_path'] = match_dict['f_path'].lstrip('/')
38
35 try:
39 try:
36 by_id = repo_name.split('_')
40 by_id = repo_name.split('_')
37 if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '':
41 if len(by_id) == 2 and by_id[1].isdigit() and by_id[0] == '':
@@ -73,7 +73,6 b' class ShortlogController(BaseRepoControl'
73 collection = c.rhodecode_repo
73 collection = c.rhodecode_repo
74 c.file_history = f_path
74 c.file_history = f_path
75 if f_path:
75 if f_path:
76 f_path = f_path.lstrip('/')
77 # get the history for the file !
76 # get the history for the file !
78 tip_cs = c.rhodecode_repo.get_changeset()
77 tip_cs = c.rhodecode_repo.get_changeset()
79 try:
78 try:
General Comments 0
You need to be logged in to leave comments. Login now