Skip to content

Commit 016a8e6

Browse files
committed
make modified files be relative to current working directory instead of the given base path
1 parent b693b28 commit 016a8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patchwork/common/tools/code_edit_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def execute(
104104
return f"Error: {str(e)}"
105105

106106
if command in {"create", "str_replace", "insert"}:
107-
self.modified_files.update({abs_path.relative_to(self.repo_path)})
107+
self.modified_files.update({abs_path.relative_to(Path.cwd())})
108108

109109
return result
110110

0 commit comments

Comments
 (0)