38a9cda[x]): n/aIt seems pushes to repos with rw deployment keys do not trigger a reindex of the repo or the "commit" event.
Reproduced on try.gitea: https://try.gitea.io/mqudsi/test-deploy
That repo appears blank, but it has content.
This bug just hit me hard and took me hours to realize what the problem was. Any update on this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
@bjoe2k4 need more investigation.
I'm using the latest HEAD and have the exact same problem. Using read/write deploy keys, the cache is not invalidated when pushing, using a user key, it is. Can I help investigating @lunny?
This is pushing with SSH keys?
I bet the environment variables for the hooks aren't being set properly.
Not regular ssh key push, pushing with rw-enabled deployment keys.
Yep, taking a look at gitea cmd/serv.go the environment settings aren't properly set.
I've pushed a branch to github but not opened a PR just yet until I've had a chance to test it
@mqudsi maybe you can confirm that #5935 fix this issue.
@lunny I can confirm this fixes the issue.
Most helpful comment
This bug just hit me hard and took me hours to realize what the problem was. Any update on this?