forked from mirrors/jj
tests: use OS directory separator in path when writing files to working copy
This commit is contained in:
parent
6233782914
commit
45bb748f9b
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ pub fn write_working_copy_file(repo: &ReadonlyRepo, path: &FileRepoPath, content
|
|||
.write(true)
|
||||
.create(true)
|
||||
.truncate(true)
|
||||
.open(repo.working_copy_path().join(path.to_internal_string()))
|
||||
.open(path.to_fs_path(repo.working_copy_path()))
|
||||
.unwrap();
|
||||
file.write_all(contents.as_bytes()).unwrap();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue