Repository navigation
Commit 918fb43
committed
Fix containment check by normalizing absolute cwd path
The containment check was failing when cwd was '.' because std::path::absolute
converts it to '$PWD/.' without lexical normalization, while bundler_root is
already normalized. This caused the starts_with check to fail incorrectly.
The fix normalizes the absolute cwd path using normalize_lexically before
comparison, ensuring both paths are in the same normalized form.1 parent 2195f7d commit 918fb43
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
436 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
437 | 442 | | |
438 | 443 | | |
439 | 444 | | |
| |||
0 commit comments