Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Gitea Git Hooks disabled

    Gitea
    4
    6
    15240
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sfeldkamp last edited by

      @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 = false

      However, 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?

      girish fbartels 2 Replies Last reply Reply Quote 0
      • girish
        girish Staff @sfeldkamp last edited by

        @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

        S 1 Reply Last reply Reply Quote 0
        • S
          sfeldkamp @girish last edited by

          @girish

          oh, man. My bad for not reading the docs on that one. Thanks for the help. 👍

          1 Reply Last reply Reply Quote 0
          • fbartels
            fbartels App Dev @sfeldkamp last edited by

            @sfeldkamp said in Gitea Git Hooks disabled:

            [custom]
            DISABLE_GIT_HOOKS = false

            you have to put it below [security], though.

            1 Reply Last reply Reply Quote 0
            • krschuerman
              krschuerman last edited by

              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

              fbartels 1 Reply Last reply Reply Quote 0
              • fbartels
                fbartels App Dev @krschuerman last edited by

                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
                
                1 Reply Last reply Reply Quote 2
                • First post
                  Last post
                Powered by NodeBB