Error 500 on PR renaming #12728

Closed
opened 2025-11-02 10:19:17 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @BastienVigneron on GitHub (Mar 25, 2024).

Description

When I try to rename a PR (to remove the WIP:), I get an HTTP/500 errror.

The log produce the following:

2024/03/25 12:47:32 ...eb/routing/logger.go:102:func1() [I] router: completed GET /iam/iamv2/issues/117/content-history/overview?_csrf=Fvrje1qxFrfNnEsI7pgKjQvSFLg6MTcxMTM3MDc0MzgzMDEyNDkwOA for 10.16.0.64:0, 200 OK in 24.3ms @ repo/issue_content_history.go:24(repo.GetContentHistoryOverview)
2024/03/25 12:47:36 ...rs/web/repo/issue.go:2163:UpdateIssueTitle() [E] ChangeTitle: exit status 128 - fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
 - fatal: ambiguous argument '': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Gitea Version

1.21.9

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

The one provided in official docker image.

Operating System

Official docker image (gitea/gitea)

How are you running Gitea?

Via official docker image (gitea/gitea).

Database

PostgreSQL

Originally created by @BastienVigneron on GitHub (Mar 25, 2024). ### Description When I try to rename a PR (to remove the `WIP:`), I get an HTTP/500 errror. The log produce the following: ``` 2024/03/25 12:47:32 ...eb/routing/logger.go:102:func1() [I] router: completed GET /iam/iamv2/issues/117/content-history/overview?_csrf=Fvrje1qxFrfNnEsI7pgKjQvSFLg6MTcxMTM3MDc0MzgzMDEyNDkwOA for 10.16.0.64:0, 200 OK in 24.3ms @ repo/issue_content_history.go:24(repo.GetContentHistoryOverview) 2024/03/25 12:47:36 ...rs/web/repo/issue.go:2163:UpdateIssueTitle() [E] ChangeTitle: exit status 128 - fatal: ambiguous argument '': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' - fatal: ambiguous argument '': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git <command> [<revision>...] -- [<file>...]' ``` ### Gitea Version 1.21.9 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version The one provided in official docker image. ### Operating System Official docker image (gitea/gitea) ### How are you running Gitea? Via official docker image (gitea/gitea). ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:19:17 -06:00
Author
Owner

@lunny commented on GitHub (Mar 25, 2024):

This has been fixed by #30066 and will be released on v1.21.10

@lunny commented on GitHub (Mar 25, 2024): This has been fixed by #30066 and will be released on v1.21.10
Author
Owner

@wxiaoguang commented on GitHub (Mar 25, 2024):

Ref #29997

Sorry for the inconvenience.

  • It could be fixed by updating to pre-1.21.10:
@wxiaoguang commented on GitHub (Mar 25, 2024): Ref #29997 Sorry for the inconvenience. * It could be fixed by updating to pre-1.21.10: * Docker image: use gitea/gitea:1.21-nightly and gitea/gitea:1.21-nightly-rootless * Binary: download from https://dl.gitea.com/gitea/1.21/
Author
Owner

@BastienVigneron commented on GitHub (Mar 25, 2024):

Thank for the reactivity !

@BastienVigneron commented on GitHub (Mar 25, 2024): Thank for the reactivity !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12728