Skip to content

Commit

Permalink
test: Fix realpath failure on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed May 16, 2024
1 parent eeb04b9 commit e21a5de
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 e21a5de

Please sign in to comment.