| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 3e9611b commit 963ca1c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -189,7 +189,10 @@ def test_stats_preserve_filename_spaces(self, rw_dir): | |||
| 189 | 189 | assert empty_stats.files == {} | |
| 190 | 190 | assert empty_stats.total == {"insertions": 0, "deletions": 0, "lines": 0, "files": 0} | |
| 191 | 191 | ||
| 192 | - repo.index.remove(list(paths)) | ||
| 192 | + # Avoid filesystem path normalization of space-only names on Windows. | ||
| 193 | + index = repo.index | ||
| 194 | + index.entries.clear() | ||
| 195 | + index.write() | ||
| 193 | 196 | removed_stats = repo.index.commit("Remove files", author=actor, committer=actor).stats | |
| 194 | 197 | assert removed_stats.files == { | |
| 195 | 198 | path: {"insertions": 0, "deletions": 2 * count, "lines": 2 * count, "change_type": "D"} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments