##// END OF EJS Templates
init bare repos for git now by default. This is recommended setup for remotes repositories
marcink -
r2321:75280665 beta
parent child Browse files
Show More
@@ -458,8 +458,12 b' class RepoModel(BaseModel):'
458 )
458 )
459 )
459 )
460 backend = get_backend(alias)
460 backend = get_backend(alias)
461
461 if alias == 'hg':
462 backend(repo_path, create=True, src_url=clone_uri)
462 backend(repo_path, create=True, src_url=clone_uri)
463 elif alias == 'git':
464 backend(repo_path, create=True, src_url=clone_uri, bare=True)
465 else:
466 raise Exception('Undefined alias %s' % alias)
463
467
464 def __rename_repo(self, old, new):
468 def __rename_repo(self, old, new):
465 """
469 """
General Comments 0
You need to be logged in to leave comments. Login now