gitea: push commits after upgrade from 1.8.3 to 1.9.3 errors happen

  • Gitea version (or commit ref): 1.9.3
  • Git version: 2.7
  • Operating system: ubuntu 16
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

some error happen when push commits after upgrad from 1.8.3 to 1.9.3.

$ git push Counting objects: 3, done. Writing objects: 100% (3/3), 228 bytes | 228.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Gitea: Internal error remote: retrieve protected branches information failed: invalid character ‘<’ looking for beginning of value To https://abc.com/abc/test_123.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ‘https://abc.com/abc/test_123.git

Screenshots

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

I have the same problem. And it is the pre-receove hooks. It still had

#!/usr/bin/env bash
"/home/git/gogs/gogs" hook --config='/home/git/gogs/custom/conf/app.ini' pre-receive

In it for a very long time. I did a clean-up and suddenly had this problem. Now I symlinked gitea to the old gogs location.

  • Resynchronize pre-receive, update and post-receive hooks of all repositories. Did not resolve the issue! The hook stayed the same after resynchronisation.
  • What does the command do anyway? Is there any possible damage when using a very old gogs binary in this hook?

Have you changed the binary location on server? If that, you should Resynchronize pre-receive, update and post-receive hooks of all repositories. on admin panel.