You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a directory, fun/🕰️, in a repository. treefmt complains like this:
WARN walk | git: Path /home/lukas/src/depot/"fun/\360\237\225\260\357\270\217/OWNERS" is in the worktree but appears to have been removed from the filesystem
It seems like it is unable to match up the fs paths and the one it gets from git.
To Reproduce
git clone https://code.tvl.fyi/depot.git
nix-build -A tools.depotfmt
./result/bin/depotfmt
Expected behavior
No warning is created.
System information
NixOS, x86_64-linux, treefmt 2.1.0
The text was updated successfully, but these errors were encountered:
`git ls-files` was providing some `"..."` quoted paths when it encountered emojis in the file/dir name.
Running them through `strconv.Unquote` fixes things.
Fixes#485
Signed-off-by: Brian McGee <[email protected]>
Describe the bug
We have a directory,
fun/🕰️
, in a repository. treefmt complains like this:It seems like it is unable to match up the fs paths and the one it gets from git.
To Reproduce
Expected behavior
No warning is created.
System information
NixOS, x86_64-linux, treefmt 2.1.0
The text was updated successfully, but these errors were encountered: