We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4662e8f commit 6cf1a72Copy full SHA for 6cf1a72
1 file changed
dfetch/project/subproject.py
@@ -148,7 +148,7 @@ def _apply_patches(self) -> list[str]:
148
patch_path = (cwd / patch).resolve()
149
150
try:
151
- patch_path.relative_to(cwd)
+ relative_patch_path = patch_path.relative_to(cwd)
152
except ValueError:
153
self._log_project(f'Skipping patch "{patch}" which is outside {cwd}.')
154
continue
@@ -157,7 +157,7 @@ def _apply_patches(self) -> list[str]:
157
self._log_project(f"Skipping non-existent patch {patch}")
158
159
160
- normalized_patch_path = str(patch_path.relative_to(cwd).as_posix())
+ normalized_patch_path = str(relative_patch_path.as_posix())
161
162
apply_patch(normalized_patch_path, root=self.local_path)
163
self._log_project(f'Applied patch "{normalized_patch_path}"')
0 commit comments