Commits

Marcin Kuzminski committed 7528066

init bare repos for git now by default. This is recommended setup for remotes repositories

  • Participants
  • Parent commits 48d93ea

Comments (0)

Files changed (1)

rhodecode/model/repo.py

                 )
         )
         backend = get_backend(alias)
-
-        backend(repo_path, create=True, src_url=clone_uri)
+        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):
         """