You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/cmd
zeripath 13c0f7dfff
Fix notifications on pushing with deploy keys by setting hook environment variables (#5935)
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
5 years ago
..
admin.go Allow for user specific themes (#5668) 6 years ago
cert.go General refactor of the cmd package (#3328) 7 years ago
cmd.go Disallow empty titles (#5785) 6 years ago
dump.go Add flag to skip repository dumping (#5695) 6 years ago
generate.go Implements generator cli for secrets (#3531) 6 years ago
hook.go fix lfs version check warning log when using ssh protocol (#5501) 6 years ago
keys.go Create AuthorizedKeysCommand (#5236) 6 years ago
migrate.go Add command for migrating database (#4954) 6 years ago
serv.go Fix notifications on pushing with deploy keys by setting hook environment variables (#5935) 5 years ago
web.go Remove a double slash in the HTTPS redirection when Let's Encrypt is enabled (#5537) 6 years ago
web_graceful.go refactor: show command help message. (#1486) 7 years ago
web_windows.go fix windows build broken by #416 8 years ago