# HG changeset patch # User Marcin Kuzminski # Date 1346869461 -7200 # Node ID 57456b1c215bab5633ef818bd9051513339104c3 # Parent 008d9c6f7c92636aaeda6f182bffecac6a464dd3 git forks were not created as bare repos diff -r 008d9c6f7c92 -r 57456b1c215b docs/changelog.rst --- 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**) ---------------------- diff -r 008d9c6f7c92 -r 57456b1c215b rhodecode/lib/celerylib/tasks.py --- 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, diff -r 008d9c6f7c92 -r 57456b1c215b rhodecode/lib/vcs/backends/git/repository.py --- 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: