##// END OF EJS Templates
git: handle properly the .git bare repo clones.
marcink -
r202:0ed081fc default
parent child Browse files
Show More
@@ -95,7 +95,13 b' class GitRepository(object):'
95
95
96 :param path:
96 :param path:
97 """
97 """
98 return path.split(self.repo_name, 1)[-1].strip('/')
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 def inforefs(self, request, unused_environ):
106 def inforefs(self, request, unused_environ):
101 """
107 """
General Comments 0
You need to be logged in to leave comments. Login now