changeset 2807:57456b1c215b beta

git forks were not created as bare repos
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 05 Sep 2012 20:24:21 +0200
parents 008d9c6f7c92
children 3a007d806f0f
files docs/changelog.rst rhodecode/lib/celerylib/tasks.py rhodecode/lib/vcs/backends/git/repository.py
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docs/changelog.rst	Wed Sep 05 12:31:15 2012 -0400
+++ b/docs/changelog.rst	Wed Sep 05 20:24:21 2012 +0200
@@ -33,6 +33,7 @@
 - fixes #550 mercurial repositories comparision failed when origin repo had
   additional not-common changesets
 - fixed status of code-review in preview windows of pull request
+- git forks were not initialized at bare repos
 
 1.4.0 (**2012-09-03**)
 ----------------------
--- a/rhodecode/lib/celerylib/tasks.py	Wed Sep 05 12:31:15 2012 -0400
+++ b/rhodecode/lib/celerylib/tasks.py	Wed Sep 05 20:24:21 2012 +0200
@@ -402,7 +402,7 @@
     backend = get_backend(repo_type)
     backend(safe_str(destination_fork_path), create=True,
             src_url=safe_str(source_repo_path),
-            update_after_clone=update_after_clone)
+            update_after_clone=update_after_clone, bare=True)
     log_create_repository(fork_repo.get_dict(), created_by=cur_user.username)
 
     action_logger(cur_user, 'user_forked_repo:%s' % fork_name,
--- a/rhodecode/lib/vcs/backends/git/repository.py	Wed Sep 05 12:31:15 2012 -0400
+++ b/rhodecode/lib/vcs/backends/git/repository.py	Wed Sep 05 20:24:21 2012 +0200
@@ -178,7 +178,7 @@
             raise urllib2.URLError("[%s] %s" % (url, e))
 
     def _get_repo(self, create, src_url=None, update_after_clone=False,
-            bare=False):
+                  bare=False):
         if create and os.path.exists(self.path):
             raise RepositoryError("Location already exist")
         if src_url and not create: