Commit a14f0c2
Non-ascii file tree bug (#726)
* fix: Prevent duplicate folders in file tree for non-ASCII paths
Git quotes paths containing non-ASCII characters using octal escape
sequences (e.g., "src/\321\202\320\265\321\201\321\202.txt"). The
previous code split on comma, leaving quotes in the path, which caused
folders like "src" to appear twice (once as "src" and once as '"src').
Fixed by adding -c core.quotePath=false to all git ls-tree commands,
which outputs paths without quoting, preventing duplicate folder entries.
Fixes #SOU-74
* changelog
* changelog
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>1 parent 1d4626d commit a14f0c2
2 files changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| 173 | + | |
| 174 | + | |
169 | 175 | | |
170 | 176 | | |
171 | 177 | | |
| |||
0 commit comments