Repository navigation
Commit cf5fe83
test: cover Cygwin index filename restrictions
The partial Cygwin fast-suite log exposed a failure in
`test_valid_unusual_index_names_round_trip`: native Git omitted a literal
backslash filename. Cygwin Git recognizes Windows separators and applies
NTFS path protection, even though Python reports a POSIX platform.
Move that case into the existing unsupported-name assertions for Cygwin.
Check that GitPython raises `ValueError`, preserves the published index,
and removes its lock. Other POSIX systems retain the round-trip case;
Windows retains the control-character and colon rejection cases. Document
the Cygwin restriction in `changes.rst`.
Validation: three focused index tests pass locally. The Cygwin and Windows
test branches pass with only Git's ignored-record behavior simulated;
native Cygwin verification awaits CI. Ruff lint, formatting, and
`git diff --check` pass.1 parent 0ec8bf0 commit cf5fe83
2 files changed
Lines changed: 19 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
277 | 283 | | |
278 | 284 | | |
279 | 285 | | |
280 | 286 | | |
281 | 287 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
| |||
0 commit comments