Mercurial > kallithea
changeset 2621:4f3ecd7357a2 beta
Removed stupid code that assumed we have vcs instance after just creating it in database.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 16 Jul 2012 16:01:15 +0200 |
parents | cd207411cf22 |
children | 0ffcbeb76e4f |
files | rhodecode/model/repo.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/repo.py Mon Jul 16 14:42:21 2012 +0200 +++ b/rhodecode/model/repo.py Mon Jul 16 16:01:15 2012 +0200 @@ -282,10 +282,7 @@ 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)