-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Gitea Webhook - wrong FilePath #15865
Labels
Comments
Yes this looks like it would fix the bug - do you want to send up a PR? |
If you can handle this fix yourself through your process, I'd rather. If
you clearly require a pull request from me, I will create it.
Miloslav Sklenička
čt 13. 5. 2021 v 23:41 odesílatel zeripath ***@***.***>
napsal:
… Yes this looks like it would fix the bug - do you want to send up a PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#15865 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF76JPYGSCKX4HXRHWNVOJ3TNRBSPANCNFSM443HMV7A>
.
|
Sorry I missed this. I think there's a bit more of a problem here and we need to use:
and use the same style of parsing developed in LogNameStatusRepo |
zeripath
added a commit
to zeripath/gitea
that referenced
this issue
Jun 28, 2021
There is an unfortunate bug with GetCommitFileStatus where files with spaces are misparsed and split at the space. There is a second bug because modern gits detect renames meaning that this function no longer works correctly. There is a third bug in that merge commits don't have their modified files detected correctly. Fix go-gitea#15865 Signed-off-by: Andrew Thornton <art27@cantab.net>
6543
pushed a commit
that referenced
this issue
Jul 2, 2021
* Fix modified files list in webhooks when there is a space There is an unfortunate bug with GetCommitFileStatus where files with spaces are misparsed and split at the space. There is a second bug because modern gits detect renames meaning that this function no longer works correctly. There is a third bug in that merge commits don't have their modified files detected correctly. Fix #15865 Signed-off-by: Andrew Thornton <art27@cantab.net>
AbdulrhmnGhanem
pushed a commit
to kitspace/gitea
that referenced
this issue
Aug 10, 2021
…6288) * Fix modified files list in webhooks when there is a space There is an unfortunate bug with GetCommitFileStatus where files with spaces are misparsed and split at the space. There is a second bug because modern gits detect renames meaning that this function no longer works correctly. There is a third bug in that merge commits don't have their modified files detected correctly. Fix go-gitea#15865 Signed-off-by: Andrew Thornton <art27@cantab.net>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Some time ago, i wrote on gitea forum:
https://discourse.gitea.io/t/webhook-sends-wrong-incomplete-file-path/2823/4
If we used webhook gitea feature, we discovered one “strange” behavior. When Path to modified file contains SPACE, then gitea sends incomplete path in commits.modified.
Here is JSON example:
This is proper filepath: Java Source/jmesa.properties
We needed to fix this behavior, so we made our own release.
This is how we fixed it:
File: gitea/modules/git/commit.go
Gitea version: 1.14.1
The text was updated successfully, but these errors were encountered: