diff --git a/pagure/ui/fork.py b/pagure/ui/fork.py index 1fc2054..90582db 100644 --- a/pagure/ui/fork.py +++ b/pagure/ui/fork.py @@ -183,7 +183,7 @@ def request_pull(repo, requestid, username=None): repo_obj.revparse_single(diff_commits[0].oid.hex) ) - elif orig_repo.is_empty: + elif orig_repo.is_empty and not repo_obj.is_empty: for commit in repo_obj.walk(commitid, pygit2.GIT_SORT_TIME): diff_commits.append(commit) if request.status and diff_commits: