Edit default update hook template


How to edit default update hook template? (For hooks in gogs-repos/user/project.git/hooks). By default I has bash script that calls gogs. I want to expand this script.


Currently there is no hook template, what Gogs shows when no hook script found is the one generate by Git command automatically.