diff options
author | zeripath <art27@cantab.net> | 2019-02-03 14:00:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-03 14:00:48 +0000 |
commit | 13c0f7dfffc99c58c1c53f3bc0c6eaf17c3860f8 (patch) | |
tree | 49b74b20352b9e4098447c55c599e1c1cbed8abd /options | |
parent | 2902b3a68c95ddc9bfe9963031ae3454a5bb7d29 (diff) | |
download | gitea-13c0f7dfffc99c58c1c53f3bc0c6eaf17c3860f8.tar.gz gitea-13c0f7dfffc99c58c1c53f3bc0c6eaf17c3860f8.zip |
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
Diffstat (limited to 'options')
0 files changed, 0 insertions, 0 deletions