# HG changeset patch # User Marcin Kuzminski # Date 2012-07-16 16:01:15 # Node ID 4f3ecd7357a292a37aa47a93303e79287063ba67 # Parent cd207411cf2252c10510ca6c44100706f4e46a36 Removed stupid code that assumed we have vcs instance after just creating it in database. diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -282,10 +282,7 @@ class RepoModel(BaseModel): clone_uri) log_create_repository(new_repo.get_dict(), created_by=owner.username) - else: - # install the githook if it's a git repo - if repo_type == 'git': - ScmModel().install_git_hook(repo=new_repo.scm_instance) + # now automatically start following this repository as owner ScmModel(self.sa).toggle_following_repo(new_repo.repo_id, owner.user_id)