Skip to content

Add Fallback for Pulls Diff when missing commits #13216

Closed
@6543

Description

@6543
Member

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

Activity

added a commit that references this issue on Oct 20, 2020
d082faa
added
type/featureCompletely new functionality. Can only be merged if feature freeze is not active.
and removed on Oct 20, 2020
added a commit that references this issue on Oct 20, 2020
0aec2a2
6543

6543 commented on Oct 20, 2020

@6543
MemberAuthor

reopen as per comment on #13218

reopened this on Oct 20, 2020
added a commit that references this issue on Oct 25, 2020
cdf6a39
added a commit that references this issue on Oct 25, 2020
d795bfc
techknowlogick

techknowlogick commented on Oct 25, 2020

@techknowlogick
Member

closed per linked PR

locked and limited conversation to collaborators on Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @techknowlogick@6543

      Issue actions

        Add Fallback for Pulls Diff when missing commits · Issue #13216 · go-gitea/gitea