Show More
@@ -95,7 +95,13 b' class GitRepository(object):' | |||
|
95 | 95 | |
|
96 | 96 | :param path: |
|
97 | 97 | """ |
|
98 |
|
|
|
98 | path = path.split(self.repo_name, 1)[-1] | |
|
99 | if path.startswith('.git'): | |
|
100 | # for bare repos we still get the .git prefix inside, we skip it | |
|
101 | # here, and remove from the service command | |
|
102 | path = path[4:] | |
|
103 | ||
|
104 | return path.strip('/') | |
|
99 | 105 | |
|
100 | 106 | def inforefs(self, request, unused_environ): |
|
101 | 107 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now