Gitea Git Hooks disabled
-
@nebulon said in Gitea - Package Updates:
Full changelog
https://github.com/go-gitea/gitea/pull/13058
This change in 1.13.0 broke my repo by causing my existing git hook to fail. Git Hooks tab is now hidden by default.
I can't successfully push to origin because the hook fails.I updated run/gitea/app.ini manually to restore it by adding
[custom]
DISABLE_GIT_HOOKS = falseHowever, this is not durable for a restart. I was depending on the Git Hooks feature of Gitea to push to mirror my repository to the GitHub Pages app repo to publish it.
Is it possible to default this value to true instead in the app? Or otherwise provide a way to toggle it that will be durable across versions and installs?
-
@sfeldkamp You can put that config section in
/app/data/app.ini
instead and restart the app. Please see https://docs.cloudron.io/apps/gitea/ . At run time, the package will merge the package config with your user config to generate/run/gitea/app.ini
-
@sfeldkamp said in Gitea Git Hooks disabled:
[custom]
DISABLE_GIT_HOOKS = falseyou have to put it below
[security]
, though. -
Is this setting supposed to still work in 1.14.2? I added it to /etc/gitea/app.ini in a previous version and it worked, but with each of the last two updates I installed it no longer works for me.
app.ini looks like this:
[security]
INTERNAL_TOKEN = <snip>
INSTALL_LOCK = true
SECRET_KEY = <snip>[custom]
DISABLE_GIT_HOOKS = false -
Hi @krschuerman,
for me this still works, but as already said in my last post here in this thread the setting needs to be placed in the
security
block.[security] [..] DISABLE_GIT_HOOKS = false