#28986·gitea

refs/ are not updated

Author: camlafitCreated Jan 30, 2024Updated Sep 14, 2026
Labelstype/bug

Description

Hello

In some cas refs in bare repository are not updated. Since some weeks we have trouble when user try to push force or rebase any branch (main or dev branches)

## git remote add origin [email protected]/spip/spip/
## git [....]
## git push -f dev/instituer_ergo
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: Visit the existing pull request:
remote:   https://git.spip.net/spip/spip/pulls/196
remote:
remote: . Processing 1 references
remote: Processed 1 references in total
To git.spip.net:spip/spip.git
 + f7124113c...434aff617 dev/instituer_ergo -> dev/instituer_ergo (forced update)

$ git lg -1
* 434aff617 - (HEAD -> dev/instituer_ergo, origin/dev/instituer_ergo) Suivre la proposition d'erational de ne mettre un fond que sur le statut lui-même sans le label (RastaPopoulos 76 minutes ago)

But in server repositories/spip/spip.get/refs/heads/dev/instituer_ergo was targeted to f7124113c To update the change I've updated the file to 434aff617

file state to this file looks correct Accesx : (0644/-rw-r--r--) UID : ( 1001/ git) GID : ( 1001/ git)

We have got some other trouble from webui with rebase/push commit or any other push on this repository. Other repositories don't look get this trouble.

Could be similar to https://github.com/go-gitea/gitea/issues/4835

Gitea Version

1.19.2 , 1.21.4, 1.21.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

2.39.2-1.1

Operating System

Debian 12.2 / Mariadb 1:10.11.4-1~deb12u1

How are you running Gitea?

giteas is build from source service is a xen instance domU

As we have an historic configuration with multiple instance we use script this script to start gitea :

su \
               -l git \
               -s /bin/bash \
               -c "GITEA_WORK_DIR=/var/git/gitea/$instance \
                       /usr/local/bin/gitea $MODE \
                       --custom-path /var/git/gitea/$instance/custom/ \
                       --config /var/git/gitea/$instance/config/app.ini \
                       --pid /var/run/git/gitea_$instance.pid &"

Database

MySQL/MariaDB