项目文件存在特殊名称会导致gogs页面报错打不开
belongwqz opened this issue · 1 comments
belongwqz commented
Gogs version
0.13.0
Git version
- Server:
- Client: 2.31.1
Operating system
rhel
Database
mysql 5.7
Describe the bug
当项目存在特殊名的文件,比如test - 副本 - 副本.txt
,推送到仓库之后,仓库的页面会报错,提示An error has occurred : get commit by path "test - \\345\\211\\257\\346\\234\\254 - \\345\\211\\257\\346\\234\\254.txt": revision does not exist
To reproduce
正常建仓,添加一个文件名为test - 副本 - 副本.txt
,push进去。打开gogs项目页面观察是否报错。
Expected behavior
正常打开页面
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
belongwqz commented
经验证,与环境的LANG环境有关,是否gogs支持设置编码类型