##// END OF EJS Templates
fixes issue #331 RC mangles repository names if the a repository group contains the "full path" to the repositories
marcink -
r1821:6b318706 default
parent child Browse files
Show More
@@ -154,9 +154,8 def get_repos(path, recursive=False):
154 154 from vcs.utils.helpers import get_scm
155 155 from vcs.exceptions import VCSError
156 156
157 if path.endswith(os.sep):
158 #remove ending slash for better results
159 path = path[:-1]
157 # remove ending slash for better results
158 path = path.rstrip('/')
160 159
161 160 def _get_repos(p):
162 161 if not os.access(p, os.W_OK):
@@ -167,7 +166,7 def get_repos(path, recursive=False):
167 166 cur_path = os.path.join(p, dirpath)
168 167 try:
169 168 scm_info = get_scm(cur_path)
170 yield scm_info[1].split(path)[-1].lstrip(os.sep), scm_info
169 yield scm_info[1].split(path, 1)[-1].lstrip(os.sep), scm_info
171 170 except VCSError:
172 171 if not recursive:
173 172 continue
General Comments 0
You need to be logged in to leave comments. Login now