From 292f52cd0f81a0e88cd674790a9ce61c2c87177c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 06 2016 13:21:31 +0000 Subject: Fix typo in the variable name, requestepo != requestrepo --- diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index 7519f29..b1a15e7 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -980,11 +980,11 @@ def new_request_pull(repo, branch_to, branch_from, username=None): contributing = None requestrepopath = _get_parent_request_repo_path(repo) if os.path.exists(requestrepopath): - requestepo = pygit2.Repository(requestrepopath) - if not requestepo.is_empty and not requestepo.head_is_unborn: - commit = requestepo[requestepo.head.target] + requestrepo = pygit2.Repository(requestrepopath) + if not requestrepo.is_empty and not requestrepo.head_is_unborn: + commit = requestrepo[requestrepo.head.target] contributing = __get_file_in_tree( - requestepo, commit.tree, ['templates', 'contributing.md'], + requestrepo, commit.tree, ['templates', 'contributing.md'], bail_on_tree=True) if contributing: contributing, safe = pagure.doc_utils.convert_readme(