cannot un-WIP or change PR title #12717

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

Originally created by @rafipiccolo on GitHub (Mar 23, 2024).

Description

since new version of gitea 1.21.9, i can't un-WIP a PR. i get the error

JavaScript error: Cannot read properties of undefined (reading 'endsWith') (https://gitea.raphaelpiccolo.com/assets/js/index.js?v=1.21.9 @ 20:181341). Open browser console to see more details.

i also cant change PR title. i get no error, but it does nothing

inspecting the ajax request says :

<p>Une erreur s’est produite:</p>
					<pre class="gt-whitespace-pre-wrap gt-break-all">ChangeTitle, exit status 128 - fatal: ambiguous argument &#39;&#39;: unknown revision or path not in the working tree.
Use &#39;--&#39; to separate paths from revisions, like this:
&#39;git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]&#39;
 - fatal: ambiguous argument &#39;&#39;: unknown revision or path not in the working tree.
Use &#39;--&#39; to separate paths from revisions, like this:
&#39;git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]&#39;
</pre>

Gitea Version

1.21.9

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

2.40.1

Operating System

ubuntu on the host, i dont know what is in the docker image

How are you running Gitea?

docker compose

gitea:
        image: gitea/gitea:latest
        container_name: gitea
        restart: always
        volumes:
            - ./gitea:/data

Database

MySQL/MariaDB

Originally created by @rafipiccolo on GitHub (Mar 23, 2024). ### Description since new version of gitea 1.21.9, i can't un-WIP a PR. i get the error ``` JavaScript error: Cannot read properties of undefined (reading 'endsWith') (https://gitea.raphaelpiccolo.com/assets/js/index.js?v=1.21.9 @ 20:181341). Open browser console to see more details. ``` i also cant change PR title. i get no error, but it does nothing inspecting the ajax request says : ``` <p>Une erreur s’est produite:</p> <pre class="gt-whitespace-pre-wrap gt-break-all">ChangeTitle, exit status 128 - fatal: ambiguous argument &#39;&#39;: unknown revision or path not in the working tree. Use &#39;--&#39; to separate paths from revisions, like this: &#39;git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]&#39; - fatal: ambiguous argument &#39;&#39;: unknown revision or path not in the working tree. Use &#39;--&#39; to separate paths from revisions, like this: &#39;git &lt;command&gt; [&lt;revision&gt;...] -- [&lt;file&gt;...]&#39; </pre> ``` ### Gitea Version 1.21.9 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/4191558/4ab1f46e-ddea-4ab8-a69d-3e05567b8ed2) ### Git Version 2.40.1 ### Operating System ubuntu on the host, i dont know what is in the docker image ### How are you running Gitea? docker compose ``` gitea: image: gitea/gitea:latest container_name: gitea restart: always volumes: - ./gitea:/data ``` ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 10:18:58 -06:00
Author
Owner

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

Here are some workarounds: https://github.com/go-gitea/gitea/issues/29997#issuecomment-2015053135

@wxiaoguang commented on GitHub (Mar 23, 2024): Here are some workarounds: https://github.com/go-gitea/gitea/issues/29997#issuecomment-2015053135
Author
Owner

@silverwind commented on GitHub (Mar 23, 2024):

Duplicate of https://github.com/go-gitea/gitea/issues/29997#issuecomment-2015053135, pinned that one.

@silverwind commented on GitHub (Mar 23, 2024): Duplicate of https://github.com/go-gitea/gitea/issues/29997#issuecomment-2015053135, pinned that one.
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/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12717