allura
Revisión | 2d155037c58532f27587255cd7943d661cf64a25 (tree) |
---|---|
Tiempo | 2010-05-21 03:06:33 |
Autor | Rick Copeland <rcopeland@geek...> |
Commiter | Rick Copeland |
Make the SCM permissions URL work for subdirectories as well as the primary repo dir
@@ -136,7 +136,7 @@ class UserProfileController(object): | ||
136 | 136 | parts = [p for p in repo_path.split(os.path.sep) if p] |
137 | 137 | project_path = '/' + '/'.join(parts) |
138 | 138 | project, rest = h.find_project(project_path) |
139 | - mount_point = os.path.splitext(parts[-1])[0] | |
139 | + mount_point = os.path.splitext(rest[0])[0] | |
140 | 140 | c.project = project |
141 | 141 | c.app = project.app_instance(mount_point) |
142 | 142 | return dict(allow_read=has_artifact_access('read')(user=user), |