Skip to content

No difference shown when merging request #35082

Open
@SantoMozzarella

Description

@SantoMozzarella

Description

Problem:

  1. There are two repositories:
  • A shared/original repository (myorg/repo)
  • My personal fork (myuser/repo), created from the shared one.
  1. I made changes in my fork and pushed them to a feature branch.

  2. I attempted to create a pull request from my fork into the original repository.

  3. However, Gitea shows "nothing to compare" - as if there are no differences - even though the changes do exist.

Try to resolve:

  1. I upgraded to version 1.24.3 (from 1.23), but the issue still persists.

  2. From my observations, Gitea attempts to compare my fork with itself (fork vs fork), even when I explicitly select the original repository (myorg/repo) as the target during pull request creation.

  3. I verified using Git on the command line:

  • I compared my pushed changes to the upstream repository (the original repo).
  • The changes are present, and the diff is real.
  • git diff upstream/main..HEAD confirms the difference.
  1. I enabled debug logging in app.ini, but when triggering the pull request creation, the logs only show an HTTP 200 OK response.
    It seems that Gitea is not comparing the fork against the original repository, but instead compares the fork with itself (fork vs fork) - despite the correct base repository being selected in the UI.

Additionally: docker exec gitea gitea doctor --all

Screenshots

Image Diff problem Image Show push in my local repo

Gitea Version

1.24.3

Can you reproduce the bug on the Gitea demo site?

No

Operating System

Docker container from docker hub (gitea/gitea:1.24.3)

Browser Version

Firefox 140.0.4 (64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailtopic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions