Changeset - 57456b1c215b
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 13 years ago 2012-09-05 20:24:21
marcin@python-works.com
git forks were not created as bare repos
3 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
docs/changelog.rst
Show inline comments
 
@@ -30,12 +30,13 @@ fixes
 
  resets default user permission to initial state if there is a need for that.
 
  Also forces users to set the default value for new forking permission. 
 
- #535 improved apache wsgi example configuration in docs
 
- 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**)
 
----------------------
 

	
 
news
 
++++
rhodecode/lib/celerylib/tasks.py
Show inline comments
 
@@ -399,13 +399,13 @@ def create_repo_fork(form_data, cur_user
 

	
 
    log.info('creating fork of %s as %s', source_repo_path,
 
             destination_fork_path)
 
    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,
 
                   fork_of.repo_name, '', DBS)
 

	
 
    action_logger(cur_user, 'user_created_fork:%s' % fork_name,
rhodecode/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -175,13 +175,13 @@ class GitRepository(BaseRepository):
 
            return resp.code == 200
 
        except Exception, e:
 
            # means it cannot be cloned
 
            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:
 
            raise RepositoryError("Create should be set to True if src_url is "
 
                                  "given (clone operation creates repository)")
 
        try:
0 comments (0 inline, 0 general)