🥇 export from upstream (1865b00)
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ def remove_excluded_paths(target: Path, exclude: list[str]) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def _run(cmd: list[str], cwd: Path, check: bool = True) -> subprocess.CompletedProcess:
|
def _run(cmd: list[str], cwd: Path, check: bool = True) -> subprocess.CompletedProcess:
|
||||||
result = subprocess.run(cmd, cwd=cwd, check=False, text=True, capture_output=True)
|
result = subprocess.run(cmd, cwd=cwd, check=False, capture_output=True, encoding="utf-8", errors="replace")
|
||||||
if check and result.returncode != 0:
|
if check and result.returncode != 0:
|
||||||
detail = (result.stderr or result.stdout or "").strip()
|
detail = (result.stderr or result.stdout or "").strip()
|
||||||
if detail:
|
if detail:
|
||||||
|
|||||||
Reference in New Issue
Block a user