Repository navigation
Commit e7c9282
committed
Fix parent-relative virtual dirs misclassification in hatch_env
Normalize env_dir path before checking if it's inside the project.
Previously, parent-relative paths like ../envs would incorrectly
be classified as in-project because Path::starts_with treats '..'
as a regular component. Now we canonicalize the path first, which
resolves '..' correctly before the starts_with check.1 parent 33e3a1c commit e7c9282
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments