Changeset - 75280665ad1e
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-05-21 20:42:21
marcin@python-works.com
init bare repos for git now by default. This is recommended setup for remotes repositories
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
@@ -455,14 +455,18 @@ class RepoModel(BaseModel):
 

	
 
        log.info('creating repo %s in %s @ %s' % (
 
                     repo_name, safe_unicode(repo_path), clone_uri
 
                )
 
        )
 
        backend = get_backend(alias)
 

	
 
        if alias == 'hg':
 
        backend(repo_path, create=True, src_url=clone_uri)
 
        elif alias == 'git':
 
            backend(repo_path, create=True, src_url=clone_uri, bare=True)
 
        else:
 
            raise Exception('Undefined alias %s' % alias)
 

	
 
    def __rename_repo(self, old, new):
 
        """
 
        renames repository on filesystem
 

	
 
        :param old: old name
0 comments (0 inline, 0 general)