<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def git_pull_view(self, request, repo_name):
 """Perform a git pull and redirect back to the repo."""

        LOG.info("Pull requested for %s." % repo_name)
        repo = get_object_or_404(self.model, name=repo_name)
        repo.pull()
        self.message_user(request, "Repo %s successfully updated." % repo_name,
                          level=messages.SUCCESS)
        return redirect('admin:registry_clonedrepo_change', repo_name)