Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

File changes via web interface fail with "push appears to be out of date" error after upgrading to Gitea v1.24.4 #35359

Open
Labels
@mobiawa

Description

Description

Since upgrading from 1.23.4 to 1.24.4, some users are unable to make file changes through the web interface. This issue is both repository and user-specific, affecting only certain users in one particular repository.

Steps to reproduce:

  1. User navigates to a file in the web interface
  2. User makes changes to the file
  3. User clicks "Propose file change"

Expected behavior:

The file changes should be committed to a new branch and the user should be able to proceed with creating a pull request.

Actual behavior:

The error "The push appears to be out of date" appears, preventing the user from proceeding.

Instance log error:

2025年08月26日 08:57:18 .../repository/files/update.go:291:ChangeRepoFiles() [E] *git.ErrPushOutOfDate PushOutOfDate Error: exit status 1 - To /var/lib/gitea/data/gitea-repositories/<org>/repo.git
 ! [rejected] 3306cd11f859ea2f4e50b86ddfe293fbd45e1ee4 -> christian-patch-1 (non-fast-forward)
error: failed to push some refs to '/var/lib/gitea/data/gitea-repositories/<org>/repo.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you want to integrate the remote changes, use 'git pull'
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
 - To /var/lib/gitea/data/gitea-repositories/<org>/repo.git
 ! [rejected] 3306cd11f859ea2f4e50b86ddfe293fbd45e1ee4 -> christian-patch-1 (non-fast-forward)
error: failed to push some refs to '/var/lib/gitea/data/gitea-repositories/<org>/repo.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you want to integrate the remote changes, use 'git pull'
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
: To /var/lib/gitea/data/gitea-repositories/<org>/repo.git
 ! [rejected] 3306cd11f859ea2f4e50b86ddfe293fbd45e1ee4 -> christian-patch-1 (non-fast-forward)
error: failed to push some refs to '/var/lib/gitea/data/gitea-repositories/<org>/repo.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. If you want to integrate the remote changes, use 'git pull'
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

This behavior is strange because the branch christian-patch-1 does not exist prior to the user attempting to create the file proposal. Since the branch is created at the moment the user clicks the button, there shouldn't be any "outdated" content causing a non-fast-forward rejection.

The Gitea Site-Administration page does also show no problems on the "Self check" section.

Gitea Version

1.24.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image

Git Version

2.48.1

Operating System

Ubuntu Server 20.04.6 LTS

How are you running Gitea?

Gitea runs via the binary which gets executed from a systemd service.

Database

MySQL/MariaDB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /