Weird. I was just able to push
https://github.com/apache/tika/commit/520f2cd69cd2a70315b8d395cab983c3631f8f76
directly to main.

I did git pull beforehand (as you did).

On Mon, Jun 9, 2025 at 9:28 AM Tilman Hausherr <thaush...@t-online.de> wrote:
>
> I am unable to push a minor commit to the main branch (the 3 branch was
> ok), can somebody else try something? I did try "git pull" before. There
> is a weird error message about a hook.
>
> Tilman
>
> git push
> Enumerating objects: 15, done.
> Counting objects: 100% (15/15), done.
> Delta compression using up to 16 threads
> Compressing objects: 100% (8/8), done.
> Writing objects: 100% (8/8), 673 bytes | 168.00 KiB/s, done.
> Total 8 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
> remote: To github:apache/tika.git
> remote:  ! [rejected] 2af249166a734f5e822cf480fdd70d223fadf763 -> main
> (fetch first)
> remote: error: failed to push some refs to 'github:apache/tika.git'
> remote: hint: Updates were rejected because the remote contains work
> that you do not
> remote: hint: have locally. This is usually caused by another repository
> pushing to
> remote: hint: the same ref. If you want to integrate the remote changes, use
> remote: hint: 'git pull' before pushing again.
> remote: hint: See the 'Note about fast-forwards' in 'git push --help'
> for details.
> remote: Syncing refs/heads/main...
> remote: Could not sync with GitHub:
> *remote: Error running update hook:
> /x1/gitbox/hooks/update.d/01-sync-repo.py*
> remote: error: hook declined to update refs/heads/main
> To https://gitbox.apache.org/repos/asf/tika.git
>   ! [remote rejected]     main -> main (*hook declined*)
> error: failed to push some refs to
> 'https://gitbox.apache.org/repos/asf/tika.git'

Reply via email to