# HG changeset patch # User Marcin Kuzminski # Date 2011-06-07 22:44:48 # Node ID ef9a30e22ea665b8e452e167f8994290c02806e0 # Parent 4b82a87b5a67384ab52ba700aae6d9f1350a7da2 Fixed remote pull command from todays code refactoring diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -331,8 +331,8 @@ class ScmModel(BaseModel): .filter(Repository.fork_id == repo_id).count() def pull_changes(self, repo_name, username): - repo, dbrepo = self.get(repo_name, retval='all') - + dbrepo = Repository.by_repo_name(repo_name) + repo = dbrepo.scm_instance try: extras = {'ip': '', 'username': username,