Issue with Pull Request: Changes Not Reflected When Creating PR from Development to Main Branch #14855

Open
opened 2025-11-02 11:24:30 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Kumaresansyncfusion on GitHub (Aug 12, 2025).

Description

Description:

  1. We are experiencing issues when creating a pull request from the development branch to the main branch. Specifically:
  2. We committed changes to the main branch directly.
  3. These changes are already present in the main branch.
  4. When attempting to create a new pull request, the changes are not reflected correctly.
  5. The pull request shows differences in commit history, even though the changes are already in the main branch.

Steps to reproduce

  1. Create a repository with main and development branches
  2. Make changes in main branch
  3. Make same changes in development branch
  4. Commit and push changes
  5. Create a pull request from development to main
  6. Notice the diff does not reflect recent changes

Gitea Version

1.24.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image Image

Git Version

2.49.1

Operating System

No response

How are you running Gitea?

Docker

Database

PostgreSQL

Originally created by @Kumaresansyncfusion on GitHub (Aug 12, 2025). ### Description Description: 1. We are experiencing issues when creating a pull request from the development branch to the main branch. Specifically: 2. We committed changes to the main branch directly. 3. These changes are already present in the main branch. 4. When attempting to create a new pull request, the changes are not reflected correctly. 5. The pull request shows differences in commit history, even though the changes are already in the main branch. Steps to reproduce 1. Create a repository with main and development branches 2. Make changes in main branch 3. Make same changes in development branch 4. Commit and push changes 5. Create a pull request from development to main 6. Notice the diff does not reflect recent changes ### Gitea Version 1.24.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots <img width="1893" height="757" alt="Image" src="https://github.com/user-attachments/assets/623684f1-3705-4d84-abc1-a947302a9c68" /> <img width="1304" height="384" alt="Image" src="https://github.com/user-attachments/assets/764dd284-568f-4e0a-a301-9d3f49cd2e35" /> ### Git Version 2.49.1 ### Operating System _No response_ ### How are you running Gitea? Docker ### Database PostgreSQL
GiteaMirror added the topic/prtype/bug labels 2025-11-02 11:24:30 -06:00
Author
Owner

@lunny commented on GitHub (Aug 13, 2025):

Could you reproduce it in https://demo.gitea.com or https://gitea.com ?

@lunny commented on GitHub (Aug 13, 2025): Could you reproduce it in https://demo.gitea.com or https://gitea.com ?
Author
Owner

@Kumaresansyncfusion commented on GitHub (Aug 14, 2025):

Hi @lunny
I have created new PR in demo site - https://gitea.com/TestingPR/Pr-issues-check/pulls/1/files
Changes are already present in target branch ,when creating PR from development to main branch its shows in difference
main branch -https://gitea.com/TestingPR/Pr-issues-check/src/branch/main/

@Kumaresansyncfusion commented on GitHub (Aug 14, 2025): Hi @lunny I have created new PR in demo site - https://gitea.com/TestingPR/Pr-issues-check/pulls/1/files Changes are already present in target branch ,when creating PR from development to main branch its shows in difference main branch -https://gitea.com/TestingPR/Pr-issues-check/src/branch/main/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14855