[Bug] 500 on download pull-diff/patch file of a merged with deleted HeadBranch #5174

Closed
opened 2025-11-02 06:16:53 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @6543 on GitHub (Apr 2, 2020).

test: https://gitea.com/gitnex/GitNex/pulls/340.diff

Gitea Version: 1.12.0+dev-82-g3723b0647

Originally created by @6543 on GitHub (Apr 2, 2020). test: https://gitea.com/gitnex/GitNex/pulls/340.diff Gitea Version: 1.12.0+dev-82-g3723b0647
GiteaMirror added the type/bug label 2025-11-02 06:16:53 -06:00
Author
Owner

@6543 commented on GitHub (Apr 2, 2020):

solution: if pull is merged and Head branch deleted use merge-commit to get diff or patch

@6543 commented on GitHub (Apr 2, 2020): solution: if pull is merged and Head branch deleted use merge-commit to get diff or patch
Author
Owner

@6543 commented on GitHub (Apr 3, 2020):

related if merged and branch not deleted: pull-diff/patch is empty

conclusion: only use pull.MergedCommitID

@6543 commented on GitHub (Apr 3, 2020): related if merged and branch not deleted: pull-diff/patch is empty conclusion: only use pull.MergedCommitID
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5174