We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
realpath
1 parent fe8cb33 commit 37d28c6Copy full SHA for 37d28c6
src/test.rs
@@ -66,7 +66,7 @@ pub fn worktrees_env_init(repo: &Repository) -> (TempDir, Branch<'_>) {
66
67
#[cfg(windows)]
68
pub fn realpath(original: &Path) -> io::Result<PathBuf> {
69
- Ok(original.to_path_buf())
+ Ok(original.canonicalize()?.to_path_buf())
70
}
71
#[cfg(unix)]
72
0 commit comments