Skip to content

Commit bb75668

Browse files
committed
Tests: Attempt to fix realpath failure on Windows
1 parent 3c4b106 commit bb75668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub fn worktrees_env_init(repo: &Repository) -> (TempDir, Branch<'_>) {
6666

6767
#[cfg(windows)]
6868
pub fn realpath(original: &Path) -> io::Result<PathBuf> {
69-
Ok(original.to_path_buf())
69+
Ok(original.canonicalize()?.to_path_buf())
7070
}
7171
#[cfg(unix)]
7272
pub fn realpath(original: &Path) -> io::Result<PathBuf> {

0 commit comments

Comments
 (0)