Add a comment for update hook change

This commit is contained in:
Lunny Xiao 2024-08-28 10:27:54 -07:00
parent 7b5947a01a
commit 0f258190e1
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -290,6 +290,8 @@ Gitea or set your environment appropriately.`, "")
return nil
}
// runHookUpdate avoid to do heavy operations on update hook because it will be
// invoked for every ref update which does not like pre-receive and post-receive
func runHookUpdate(c *cli.Context) error {
if isInternal, _ := strconv.ParseBool(os.Getenv(repo_module.EnvIsInternal)); isInternal {
return nil