mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-12 10:39:38 -05:00
PR can't be merged after manual conflict resolution #88
Closed
opened 2025-11-02 03:08:10 -06:00 by GiteaMirror
·
33 comments
No Branch/Tag Specified
main
release/v1.25
release/v1.24
release/v1.23
release/v1.22
release/v1.21
release/v1.20
release/v1.19
release/v1.18
release/v1.17
release/v1.16
release/v1.15
release/v1.14
release/v1.13
release/v1.12
release/v1.11
release/v1.10
release/v1.9
release/v1.8
v1.25.3
v1.25.2
v1.25.1
v1.25.0
v1.24.7
v1.25.0-rc0
v1.26.0-dev
v1.24.6
v1.24.5
v1.24.4
v1.24.3
v1.24.2
v1.24.1
v1.24.0
v1.23.8
v1.24.0-rc0
v1.25.0-dev
v1.23.7
v1.23.6
v1.23.5
v1.23.4
v1.23.3
v1.23.2
v1.23.1
v1.23.0
v1.23.0-rc0
v1.24.0-dev
v1.22.6
v1.22.5
v1.22.4
v1.22.3
v1.22.2
v1.22.1
v1.22.0
v1.23.0-dev
v1.22.0-rc1
v1.21.11
v1.22.0-rc0
v1.21.10
v1.21.9
v1.21.8
v1.21.7
v1.21.6
v1.21.5
v1.21.4
v1.21.3
v1.21.2
v1.20.6
v1.21.1
v1.21.0
v1.21.0-rc2
v1.21.0-rc1
v1.20.5
v1.22.0-dev
v1.21.0-rc0
v1.20.4
v1.20.3
v1.20.2
v1.20.1
v1.20.0
v1.19.4
v1.21.0-dev
v1.20.0-rc2
v1.20.0-rc1
v1.20.0-rc0
v1.19.3
v1.19.2
v1.19.1
v1.19.0
v1.19.0-rc1
v1.20.0-dev
v1.19.0-rc0
v1.18.5
v1.18.4
v1.18.3
v1.18.2
v1.18.1
v1.18.0
v1.17.4
v1.18.0-rc1
v1.19.0-dev
v1.18.0-rc0
v1.17.3
v1.17.2
v1.17.1
v1.17.0
v1.17.0-rc2
v1.16.9
v1.17.0-rc1
v1.18.0-dev
v1.16.8
v1.16.7
v1.16.6
v1.16.5
v1.16.4
v1.16.3
v1.16.2
v1.16.1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rc1
v1.3.2
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.2.3
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.1.4
v1.2.0-rc1
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.2
v1.0.1
v1.0.0
v0.9.99
Labels
Clear labels
$20
$250
$50
$500
backport/done
💎 Bounty
docs-update-needed
good first issue
hacktoberfest
issue/bounty
issue/confirmed
issue/critical
issue/duplicate
issue/needs-feedback
issue/not-a-bug
issue/regression
issue/stale
issue/workaround
lgtm/need 2
modifies/api
modifies/translation
outdated/backport/v1.18
outdated/theme/markdown
outdated/theme/timetracker
performance/bigrepo
performance/cpu
performance/memory
performance/speed
pr/breaking
proposal/accepted
proposal/rejected
pr/wip
pull-request
reviewed/wontfix
💰 Rewarded
skip-changelog
status/blocked
topic/accessibility
topic/api
topic/authentication
topic/build
topic/code-linting
topic/commit-signing
topic/content-rendering
topic/deployment
topic/distribution
topic/federation
topic/gitea-actions
topic/issues
topic/lfs
topic/mobile
topic/moderation
topic/packages
topic/pr
topic/projects
topic/repo
topic/repo-migration
topic/security
topic/theme
topic/ui
topic/ui-interaction
topic/ux
topic/webhooks
topic/wiki
type/bug
type/deprecation
type/docs
type/enhancement
type/feature
type/miscellaneous
type/proposal
type/question
type/refactoring
type/summary
type/testing
type/upstream
Mirrored from GitHub Pull Request
No Label
type/bug
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/gitea#88
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JetpackDuba on GitHub (Nov 27, 2016).
e6da2cf2cb[x]):Description
If I do a PR with conflicts, gitea says that I have to merge branch manually (
This pull request can't be merged automatically because there are conflicts.). I've done it but the message does not disappear. I closed the PR, then reopened it and now if I go to the merge request I get the following message everytime:Steps to reproduce
@Bwko commented on GitHub (Nov 29, 2016):
I'm able to semi reproduce this bug. My Gitea keeps nagging about:
I'll look into this.
@JetpackDuba commented on GitHub (Nov 30, 2016):
If you don't close it, you'll get this message. If you close it and then reopen it,
The conflict checking is still in progress, please refresh page in few moments.will appear@Bwko commented on GitHub (Nov 30, 2016):
I've opened & closed the PR multiple times:

Was you PR relatively large?
@lunny commented on GitHub (Nov 30, 2016):
I can't reproduce it. Any more clues?
@strk commented on GitHub (Nov 30, 2016):
Check the logs, I bet you got a panic in a goroutine (saw that happening) so some parts of the code are just waiting for something that will never happen (hearing back from the goroutine). It would help if panic messages were included in the logs but they only go to either stdout or stderr (I'm not sure which one).
So my suggestion is:
@strk commented on GitHub (Nov 30, 2016):
See #210 for the missing stderr/stdout redirection
@JetpackDuba commented on GitHub (Nov 30, 2016):
I've tried it again in a windows pc and I get the same behavior as @Bwko
I'm testing this with small PR
@Bwko commented on GitHub (Nov 30, 2016):
So the behavior is the same on Linux (I'm on Linux) & Windows.
At least we need to show a message that this PR has been merged.
@JetpackDuba commented on GitHub (Nov 30, 2016):
@strk I'm getting an error when restarting Gitea in my Linux Mint:

Entrada desconocida (Spanish) -> Unknown input
gogs.log.zip
I can share with you my Database and repos (They are just test repos) if it's necessary to debug it
@Bwko commented on GitHub (Nov 30, 2016):
If you could share your repo it would help us a lot. Googling the git apply error points me to a whitespace error. Are there any whitespace 'like' characters in your reppo/PR?
@JetpackDuba commented on GitHub (Dec 1, 2016):
@Bwko oke! Tonight I will attach my repo, I'm not at home atm
@JetpackDuba commented on GitHub (Dec 1, 2016):
DB SQL backup and my repo:
Gitea.zip
User: test@gmail.com
Password: TestTest
If you need something else I'll try to help!
@Bwko commented on GitHub (Dec 1, 2016):
@aeab13 Thanks for your help 👍
The bug somehow only exists in your repo (on my machine it sometimes shows the same error). But when I switch back to my own installation I'm not able to reproduce this bug.
I think the easiest solution is to prevent the execution of the .testPatch method (which produces the error). I'ts pretty useless to test a patch with 0 commits and 0 files changed.
A better solution would be to automatically mark this PR as merged. And thus avoiding the all the pre merge checks. But I don't know if this solution is possible.
@bkcsoft commented on GitHub (Dec 2, 2016):
Title changed to clarity
@JetpackDuba commented on GitHub (Dec 6, 2016):
@bkcsoft thanks for changing the title!
@Bwko thanks to you!
I've reinstalled my OS and I'll try again to create a PR with conflicts to try to reproduce it again.
PD: Does this issue still need more feedback? (I'm talking about the label)
@Bwko commented on GitHub (Dec 8, 2016):
@aeab13 Could you check if #368 fixes your issue?
@JetpackDuba commented on GitHub (Dec 9, 2016):
@Bwko I'll test it tonight!
@JetpackDuba commented on GitHub (Dec 9, 2016):
I'm having some problems with mysql in my machine.
I'll test tomorrow the changes :s Sorry!
@JetpackDuba commented on GitHub (Dec 11, 2016):
I've tested changes in #368

The message
The conflict checking is still in progress, please refresh page in few moments.has disappeared but I'm still gettingThis pull request can't be merged automatically because there are conflicts.after manual merge and I can't see commits and changed files. So the problem is still the same with different message :pEDIT: I can't see commits and changed file in the selected pull request only if I close it and reopen it.
EDIT2: I've checked the PR again and now I can see commit and files changed but still getting the same message
@Bwko commented on GitHub (Dec 13, 2016):
@aeab13 Thanks for testing.
My PR fixed the bug that was causing the
The conflict checking is still in progress, please refresh page in few moments.error.I haven't found a good solution on how to mark the conflicting PR as merged. So for now I don't know how to solve this issue 😟
Maybe someone else has any idea?
@JetpackDuba commented on GitHub (Dec 22, 2016):
I would like to try to fix it but I haven't got time to do that right now :s
If it is not fixed in a month or so, I'll try.
Thanks for trying it @Bwko ! :D
@lunny commented on GitHub (Dec 22, 2016):
@aeab13, if you have no time, could you give some idea about where the problem is?
@lunny commented on GitHub (Dec 22, 2016):
move this to 1.1 and feel free to change it back if someone has good idea.
@grissiom commented on GitHub (Jan 9, 2017):
@lunny I think
git merge-base --is-ancestorwill help you to detect whether a PR has been merged manually or not. I a PR has already been merged,git merge-base --is-ancestor pull/x/head HEADwill return 0. If the PR has not been merged, it will return 1.@lunny commented on GitHub (Jan 9, 2017):
@Bwko could you try to send another PR followed @grissiom 's advice?
@Bwko commented on GitHub (Jan 9, 2017):
@lunny & @grissiom I'll take a look at that
@Bwko commented on GitHub (Jan 20, 2017):
I'm almost done with this 😄
Do we want to automatically set a PR to merged or do we want to show a message that this PR was manually merged?
@lunny commented on GitHub (Jan 20, 2017):
How github do that?
@andreynering commented on GitHub (Jan 20, 2017):
I think GitHub marks as merged.
@Bwko commented on GitHub (Jan 24, 2017):
@aeab13 Could you test #719?
@JetpackDuba commented on GitHub (Jan 24, 2017):
I'll do it tomorrow!
@Bwko commented on GitHub (Jan 31, 2017):
@aeab13 Any updates on this issue? 🙄
@JetpackDuba commented on GitHub (Feb 2, 2017):
Sorry, I am having some issues with my computer and I can't test it right now. I am sorry :/