Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Fallback for Pulls Diff when missing commits #13216

Closed
6543 opened this issue Oct 20, 2020 · 2 comments · Fixed by #13218
Closed

Add Fallback for Pulls Diff when missing commits #13216

6543 opened this issue Oct 20, 2020 · 2 comments · Fixed by #13218
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.

Comments

@6543
Copy link
Member

6543 commented Oct 20, 2020

if a pull was merged and the pull head branch ref got missing or point to commits who are missimg, use the merged-sha as fallback to generate the diff view

To Test:

  1. create repo A
  2. frok repo A to repo B
  3. backup bare repo A
  4. create feature branch on B and add some commits
  5. create pull from B to A & squash-merge
  6. clone A to local disk
  7. restore backup of A
  8. push local clone back to gitea

what I expect -> cliking on Files-Changed will show the diff based on merged-commit as fallback

@6543 6543 added the type/bug label Oct 20, 2020
zeripath added a commit to zeripath/gitea that referenced this issue Oct 20, 2020
@6543 6543 added type/feature Completely new functionality. Can only be merged if feature freeze is not active. and removed type/bug labels Oct 20, 2020
lunny pushed a commit that referenced this issue Oct 20, 2020
@6543
Copy link
Member Author

6543 commented Oct 20, 2020

reopen as per comment on #13218

@techknowlogick
Copy link
Member

closed per linked PR

@go-gitea go-gitea locked and limited conversation to collaborators Dec 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants