From 65598305620483752ae6392a35de4ca14f4e2916 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 30 2017 09:36:11 +0000 Subject: When walking the main repo, use the proper object --- diff --git a/pagure/lib/git.py b/pagure/lib/git.py index bbb22d8..eb404ac 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -1367,7 +1367,7 @@ def diff_pull_request( if not repo_obj.is_empty and not orig_repo.is_empty: - main_walker = repo_obj.walk( + main_walker = orig_repo.walk( orig_repo.lookup_branch(request.branch).get_object().hex, pygit2.GIT_SORT_TIME) branch_walker = repo_obj.walk(commitid, pygit2.GIT_SORT_TIME)