Gitea: Pushes via deployment write keys do not trigger reindex

Created on 14 Apr 2018  路  10Comments  路  Source: go-gitea/gitea

Description

It seems pushes to repos with rw deployment keys do not trigger a reindex of the repo or the "commit" event.

  1. Create repo
  2. Add deployment key with write access
  3. Push to repo with deployment key
  4. webui does not reflect changes, repo continues to show as if new

Reproduced on try.gitea: https://try.gitea.io/mqudsi/test-deploy
That repo appears blank, but it has content.

kinbug

Most helpful comment

This bug just hit me hard and took me hours to realize what the problem was. Any update on this?

All 10 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lunny picture lunny  路  3Comments

BRMateus2 picture BRMateus2  路  3Comments

kolargol picture kolargol  路  3Comments

Fastidious picture Fastidious  路  3Comments

jakimfett picture jakimfett  路  3Comments