Changeset - 4f3ecd7357a2
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-07-16 16:01:15
marcin@python-works.com
Removed stupid code that assumed we have vcs instance after just creating it in database.
1 file changed with 1 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/repo.py
Show inline comments
 
@@ -279,16 +279,13 @@ class RepoModel(BaseModel):
 
            if not just_db:
 
                self.__create_repo(repo_name, repo_type,
 
                                   repos_group,
 
                                   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)
 
            return new_repo
 
        except:
 
            log.error(traceback.format_exc())
0 comments (0 inline, 0 general)