Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit Revert Error - this operation must be run in a work tree #26038

Closed
wzorektom opened this issue Jul 21, 2023 · 1 comment
Closed

Commit Revert Error - this operation must be run in a work tree #26038

wzorektom opened this issue Jul 21, 2023 · 1 comment
Labels
issue/duplicate The issue has already been reported.

Comments

@wzorektom
Copy link

Description

I get this error message whenever I try to revert the commit in Gitea repository.

Log:

   2023/07/21 10:06:24 ...rvices/pull/patch.go:237:AttemptThreeWayMerge() [E] Unable to run read-tree -m! Error: exit status 128 - fatal: this operation must be run in a work tree
    - fatal: this operation must be run in a work tree

Gite UI Displayed error message:

  Unable to apply patch "Error: Stdout: Stderr: Applied patch to 'README.md' with conflicts. U README.md Err: exit status 1"

Gitea Version

Version: 1.21.0+dev-340-g840830b65

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

2023-07-21_10-59-22
2023-07-21_10-40-53

Git Version

No response

Operating System

No response

How are you running Gitea?

Used one of your downloads. Runs as a Service under Win Server 2022. The issue was reproduced on your Gitea test instance.

Database

SQLite

@lunny
Copy link
Member

lunny commented Jul 21, 2023

duplicated with #22236

@lunny lunny closed this as completed Jul 21, 2023
@lunny lunny added issue/duplicate The issue has already been reported. and removed type/bug labels Jul 21, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
Development

No branches or pull requests

2 participants