Commit 305210b
committed
fix: resolve git root from module_root for worktree PR creation
git_root_dir() searches from CWD (original repo), but in worktree mode
file paths have been remapped to the worktree. This caused relative_to()
to raise ValueError when creating PRs. Search from module_root instead
so root_dir is always in the same path space as the file paths.1 parent 6a19b9d commit 305210b
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
2222 | 2223 | | |
2223 | 2224 | | |
2224 | 2225 | | |
2225 | | - | |
| 2226 | + | |
2226 | 2227 | | |
2227 | 2228 | | |
2228 | 2229 | | |
2229 | | - | |
| 2230 | + | |
2230 | 2231 | | |
2231 | 2232 | | |
2232 | 2233 | | |
| |||
0 commit comments