Commit 70cf348
committed
fix: canonicalize repo_root on windows to match file paths
git rev-parse --show-toplevel returns paths with lowercase drive letters
and forward slashes on Windows, which causes strip_prefix to fail when
comparing against canonicalized paths (which use uppercase drive letters
and UNC prefixes).
Canonicalizing the repo_root immediately ensures it matches the format
of the file paths being checked.1 parent abafdab commit 70cf348
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | | - | |
325 | | - | |
| 323 | + | |
| 324 | + | |
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
| |||
0 commit comments