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
Invalid symmetric difference expression #4890
Comments
Hi, in which way you merge? "Create a merge commit" or "Rebase before merging"? |
copying my comment from #4883: We also have a problem on pull requests with the new release. Gogs showed an 500-error on pull request merges in multiple repositories - but not from one repo to itself. Maybe relevant: on the merge site, only the first radio button was shown. I understand it should look like this: Logs:
|
"Create a merge commit", the other radio button was not shown |
@ah-edg you don't see another radio button because you didn't allow in the repository setting, that's not part of this problem.. |
Oh, ok - I didn't see it has to be explicitly activated, sorry. |
@ah-edg I don't have enough info, can you tell me if the pull request is merged successfully or remain unmerged? |
We're back in the old version and I cannot easily roll forward, so from memory: It was not merged. Pulling or fetching it produced the old version, looking at the PR in the web gui led to 500. |
but it was confirmed as sucessfully merged. |
@ah-edg are you pull request between two repositories? |
Yes, I reproduced! |
OK it is a regression, fix has been pushed to Just a note: For PRs between different repositories, the changes were NOT pushed to base repository, also, changes were NOT lost, your data is safe! Those changes just merged to the base branch of original repository (fork repository). For example, if a PR is between Since this problem is critical, I'll made a quick release today. |
Thanks for the feedback, should be fixed now :D New release is building... |
Thank you @unknwon! I was about to create a ticket for that issue, but the great community of gogs already did! Well done! |
@unknwon I try to watch log, but nothing strange appear in gogs.log, serv.log ... any idea ? |
@KevinJue I don't think the issue you encounter relates to the OP. I remember there is an issue already reported this issue, that rebase succeed but no commits merged to base branch. |
[x]
):log/gogs.log
):Description
After updating to the latest version, pull requests can no longer be merged in. The web interface gives a 500 and this error:
From the command line, a manual git diff shows the same:
# git diff dd76f78ac9dbd547e0145fa906d4aae6d1f03b18...741e4b90e6a0f216aee057fbeb7fb9ba11390c00 fatal: Invalid symmetric difference expression dd76f78ac9dbd547e0145fa906d4aae6d1f03b18...741e4b90e6a0f216aee057fbeb7fb9ba11390c00
The text was updated successfully, but these errors were encountered: