Skip to content

Commit 732eaa6

Browse files
authored
Update diffapply.py
1 parent 2547b0d commit 732eaa6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎python_agent_harness/tools/diffapply.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def _resolve_target(new_path: str, cwd: str, fallback_path: str | None) -> str:
214214
if name.startswith(prefix):
215215
name = name[len(prefix) :]
216216
break
217+
name = os.path.expanduser(name)
217218
if os.path.isabs(name):
218219
return name
219220
target = os.path.join(cwd, name)

0 commit comments

Comments
 (0)