Mercurial > kallithea
comparison rhodecode/lib/utils.py @ 2497:5a8c19c4dbe1 beta
Fixed bug in repos group discovery, when inner folder of bare git repos were detected as a group
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 20 Jun 2012 22:13:23 +0200 |
parents | 9492ab68331f |
children | 33c69eb9df9f |
comparison
equal
deleted
inserted
replaced
2496:fddd8e3fc157 | 2497:5a8c19c4dbe1 |
---|---|
232 full_path = os.path.join(safe_str(base_path), safe_str(repos_group_name)) | 232 full_path = os.path.join(safe_str(base_path), safe_str(repos_group_name)) |
233 | 233 |
234 # check if it's not a repo | 234 # check if it's not a repo |
235 if is_valid_repo(repos_group_name, base_path): | 235 if is_valid_repo(repos_group_name, base_path): |
236 return False | 236 return False |
237 | |
238 try: | |
239 # we need to check bare git repos at higher level | |
240 # since we might match branches/hooks/info/objects or possible | |
241 # other things inside bare git repo | |
242 get_scm(os.path.dirname(full_path)) | |
243 return False | |
244 except VCSError: | |
245 pass | |
237 | 246 |
238 # check if it's a valid path | 247 # check if it's a valid path |
239 if os.path.isdir(full_path): | 248 if os.path.isdir(full_path): |
240 return True | 249 return True |
241 | 250 |