diff --git a/pagure/lib/git.py b/pagure/lib/git.py index 1059e79..a27e083 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -1282,7 +1282,7 @@ def diff_pull_request( if branch: commitid = branch.get_object().hex - if repo_obj.is_empty and orig_repo.is_empty: + if repo_obj.is_empty: raise pagure.exceptions.PagureException( 'Fork is empty, there are no commits to request pulling')