Show More
@@ -19,6 +19,7 b' fixes' | |||||
19 |
|
19 | |||
20 | - fixed git protocol issues with repos-groups |
|
20 | - fixed git protocol issues with repos-groups | |
21 | - fixed git remote repos validator that prevented from cloning remote git repos |
|
21 | - fixed git remote repos validator that prevented from cloning remote git repos | |
|
22 | - fixes #370 ending slashes fixes for repo and groups | |||
22 |
|
23 | |||
23 | 1.3.1 (**2012-02-27**) |
|
24 | 1.3.1 (**2012-02-27**) | |
24 | ---------------------- |
|
25 | ---------------------- |
@@ -263,6 +263,11 b' class ReposGroupsController(BaseControll' | |||||
263 | raise HTTPInternalServerError() |
|
263 | raise HTTPInternalServerError() | |
264 |
|
264 | |||
265 | def show_by_name(self, group_name): |
|
265 | def show_by_name(self, group_name): | |
|
266 | """ | |||
|
267 | This is a proxy that does a lookup group_name -> id, and shows | |||
|
268 | the group by id view instead | |||
|
269 | """ | |||
|
270 | group_name = group_name.rstrip('/') | |||
266 | id_ = RepoGroup.get_by_group_name(group_name).group_id |
|
271 | id_ = RepoGroup.get_by_group_name(group_name).group_id | |
267 | return self.show(id_) |
|
272 | return self.show(id_) | |
268 |
|
273 |
@@ -92,11 +92,17 b' def repo_name_slug(value):' | |||||
92 |
|
92 | |||
93 |
|
93 | |||
94 | def get_repo_slug(request): |
|
94 | def get_repo_slug(request): | |
95 |
|
|
95 | _repo = request.environ['pylons.routes_dict'].get('repo_name') | |
|
96 | if _repo: | |||
|
97 | _repo = _repo.rstrip('/') | |||
|
98 | return _repo | |||
96 |
|
99 | |||
97 |
|
100 | |||
98 | def get_repos_group_slug(request): |
|
101 | def get_repos_group_slug(request): | |
99 |
|
|
102 | _group = request.environ['pylons.routes_dict'].get('group_name') | |
|
103 | if _group: | |||
|
104 | _group = _group.rstrip('/') | |||
|
105 | return _group | |||
100 |
|
106 | |||
101 |
|
107 | |||
102 | def action_logger(user, action, repo, ipaddr='', sa=None, commit=False): |
|
108 | def action_logger(user, action, repo, ipaddr='', sa=None, commit=False): |
General Comments 0
You need to be logged in to leave comments.
Login now