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?
-
@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.iniinstead 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 You can put that config section in
/app/data/app.iniinstead 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 -
@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 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 -
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
