[x]):log/gogs.log)Seen an error 500 while creating repository (relevant to any user/repo):
An error has occurred : initRepository: initRepoCommit: git push: fatal: cannot run hooks/pre-receive: No such file or directory To /data/data/com.termux/files/home/gogs-repositories/kamehb-ua/unwatched.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to '/data/data/com.termux/files/home/gogs-repositories/kamehb-ua/unwatched.git'
Screen above:

look at unwatched.git/hook/update
This is a server-side hook check. In side of the file it should be a gogs/gogs hook...
make sure /usr/bin/env and bash are working.
Don't get confused with the hook pre-receive in the Git Hooks of gogs
https://[user server, e.g.:192.168.0.105:3000]/[username]/[repo]/settings/hooks/git/pre-receive
This thing doesn't seem to work as of 0.11.53
look at unwatched.git/hook/update
This is a server-side hook check. In side of the file it should be a gogs/gogs hook...
make sure /usr/bin/env and bash are working.
Thanks, @weinianhe. Issue may be closed now
Most helpful comment
look at unwatched.git/hook/update
This is a server-side hook check. In side of the file it should be a gogs/gogs hook...
make sure /usr/bin/env and bash are working.