Skip to content

Commit

Permalink
Tests: Attempt to fix realpath failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Mar 23, 2024
1 parent 3c4b106 commit bb75668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub fn worktrees_env_init(repo: &Repository) -> (TempDir, Branch<'_>) {

#[cfg(windows)]
pub fn realpath(original: &Path) -> io::Result<PathBuf> {
Ok(original.to_path_buf())
Ok(original.canonicalize()?.to_path_buf())
}
#[cfg(unix)]
pub fn realpath(original: &Path) -> io::Result<PathBuf> {
Expand Down

0 comments on commit bb75668

Please sign in to comment.