From 338c78f7897d0f2fe790c07dd7abfd438dac8280 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 17 Jun 2026 22:10:17 +1000 Subject: [PATCH] fix: disable git transforming weird chars Git transforms non ascii and other chars into octal escaped versions, which we don't want --- src/caelestia/utils/dots/source.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/caelestia/utils/dots/source.py b/src/caelestia/utils/dots/source.py index 19e498e..f5023bb 100644 --- a/src/caelestia/utils/dots/source.py +++ b/src/caelestia/utils/dots/source.py @@ -101,10 +101,12 @@ class DotsSource: # --- Helpers --- def _git(self, *args: str) -> str: - return self._run("git", "-C", str(dots_dir), *args) + # core.quotePath=false so non-ASCII paths come back verbatim, not octal-escaped + return self._run("git", "-C", str(dots_dir), "-c", "core.quotePath=false", *args) def _git_bytes(self, *args: str) -> bytes: - result = subprocess.run(["git", "-C", str(dots_dir), *args], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + cmd = ["git", "-C", str(dots_dir), "-c", "core.quotePath=false", *args] + result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) if result.returncode != 0: raise SourceError(result.stderr.decode().strip() or f"git {' '.join(args)} failed") return result.stdout