Git grep search error #12939

Closed
opened 2025-11-02 10:25:43 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @ymefg on GitHub (Apr 30, 2024).

Originally assigned to: @wxiaoguang on GitHub.

Description

I'm encountering a failure when attempting to perform code searches in one specific repository of mine. This issue is exclusive to this particular repository; searching works fine in other repositories. Even when I try to create a new repository similar to the problematic one, I can't reproduce the issue.

image

Here's the additional information about the repository:

  • It has only one branch named "main".
  • All files are .md files.
  • There is a file named "readme.md".
  • The rest of the files have Chinese names, such as "通信协议.md".

Gitea Version

1.22.0+rc1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

CentOS

How are you running Gitea?

docker compose

Database

SQLite

Originally created by @ymefg on GitHub (Apr 30, 2024). Originally assigned to: @wxiaoguang on GitHub. ### Description I'm encountering a failure when attempting to perform code searches in one specific repository of mine. This issue is exclusive to this particular repository; searching works fine in other repositories. Even when I try to create a new repository similar to the problematic one, I can't reproduce the issue. ![image](https://github.com/go-gitea/gitea/assets/23009387/3074c8c2-7c13-45e0-ad7d-d9afbfa499d6) Here's the additional information about the repository: - It has only one branch named "main". - All files are .md files. - There is a file named "readme.md". - The rest of the files have Chinese names, such as "通信协议.md". ### Gitea Version 1.22.0+rc1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System CentOS ### How are you running Gitea? docker compose ### Database SQLite
GiteaMirror added the issue/confirmedtype/bug labels 2025-11-02 10:25:43 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Apr 30, 2024):

Could you login to the Gitea server and find the "repo.git", and "cat config" to see its content?

@wxiaoguang commented on GitHub (Apr 30, 2024): Could you login to the Gitea server and find the "repo.git", and "cat config" to see its content?
Author
Owner

@wxiaoguang commented on GitHub (Apr 30, 2024):

One more question: what's you git version?

@wxiaoguang commented on GitHub (Apr 30, 2024): One more question: what's you git version?
Author
Owner

@ymefg commented on GitHub (Apr 30, 2024):

Could you login to the Gitea server and find the "repo.git", and "cat config" to see its content?

Sorry, Gitea is deployed on the servers of the company I work for, and I'm off duty now. Also, due to the International Labor Day holiday, it'll be at least five days before I can send you the config and git version. I'll send the them once I'm back at work.

@ymefg commented on GitHub (Apr 30, 2024): > Could you login to the Gitea server and find the "repo.git", and "cat config" to see its content? Sorry, Gitea is deployed on the servers of the company I work for, and I'm off duty now. Also, due to the International Labor Day holiday, it'll be at least five days before I can send you the config and git version. I'll send the them once I'm back at work.
Author
Owner

@wxiaoguang commented on GitHub (Apr 30, 2024):

No problem. Since you are using CentOS, I guess the git version might be old. If it is possible, it's worth to try to upgrade to the latest git version.

@wxiaoguang commented on GitHub (Apr 30, 2024): No problem. Since you are using CentOS, I guess the git version might be old. If it is possible, it's worth to try to upgrade to the latest git version.
Author
Owner

@wxiaoguang commented on GitHub (May 3, 2024):

Reproduced, will propose a fix.

@wxiaoguang commented on GitHub (May 3, 2024): Reproduced, will propose a fix.
Author
Owner

@wxiaoguang commented on GitHub (May 3, 2024):

-> Fix grep search #30843

@wxiaoguang commented on GitHub (May 3, 2024): -> Fix grep search #30843
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12939