gitea/cmd
zeripath 731275247d Fix notifications on pushing with deploy keys by setting hook environment variables (#5935) (#5944)
The gitea prerecieve and postrecieve hooks and the gitea PushUpdate function require that the PusherID and PusherName are real users. Previously, these environment variables were not being set when using a deploy key - the main result being that pushing to empty repositories meant that is_empty status was not changed.

I've also added an integration test to ensure that the is_empty status is updated on pushing with a deploy key.

There is a slight issue in that the deploy key is now considered a proxy for the owner - we don't have a way of separating out the deploy key from the owner at present. This can be fixed in another PR.

Fix #3795 

Signed-off-by: Andrew Thornton art27@cantab.net
2019-02-03 13:04:09 -05:00
..
admin.go fix password variable shadowing (#5405) 2018-11-26 17:00:38 +02:00
cert.go General refactor of the cmd package (#3328) 2018-01-12 23:16:49 +01:00
cmd.go Disallow empty titles (#5785) (#5794) 2019-01-21 17:55:12 +02:00
dump.go General refactor of the cmd package (#3328) 2018-01-12 23:16:49 +01:00
generate.go Implements generator cli for secrets (#3531) 2018-02-18 20:14:37 +02:00
hook.go fix lfs version check warning log when using ssh protocol (#5501) 2018-12-19 09:17:43 +08:00
keys.go Create AuthorizedKeysCommand (#5236) 2018-11-01 09:41:07 -04:00
migrate.go Add command for migrating database (#4954) 2018-10-30 23:14:42 -04:00
serv.go Fix notifications on pushing with deploy keys by setting hook environment variables (#5935) (#5944) 2019-02-03 13:04:09 -05:00
web_graceful.go refactor: show command help message. (#1486) 2017-04-12 15:44:54 +08:00
web_windows.go fix windows build broken by #416 2016-12-31 17:16:02 +08:00
web.go Remove a double slash in the HTTPS redirection when Let's Encrypt is enabled (#5537) 2018-12-12 23:00:24 +02:00