fix(git): 修复Git变更面板中文文件名八进制转义显示
_run_project_git / _run_project_git_raw 添加 -c core.quotePath=false, 让 git 直接输出 UTF-8 原始路径名而非八进制转义形式。
This commit is contained in:
parent
a2a04b9529
commit
59b81c4551
@ -140,7 +140,7 @@ def _run_project_git(project_path: Path, args: list[str]) -> tuple[bool, str]:
|
||||
return False, ""
|
||||
try:
|
||||
proc = subprocess.run(
|
||||
[git_bin, "-C", str(project_path), *args],
|
||||
[git_bin, "-c", "core.quotePath=false", "-C", str(project_path), *args],
|
||||
cwd=str(project_path),
|
||||
text=True,
|
||||
stdout=subprocess.PIPE,
|
||||
@ -159,7 +159,7 @@ def _run_project_git_raw(project_path: Path, args: list[str], timeout: int = 4)
|
||||
return False, ""
|
||||
try:
|
||||
proc = subprocess.run(
|
||||
[git_bin, "-C", str(project_path), *args],
|
||||
[git_bin, "-c", "core.quotePath=false", "-C", str(project_path), *args],
|
||||
cwd=str(project_path),
|
||||
text=True,
|
||||
stdout=subprocess.PIPE,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user