History

Windows absolute path.

Svetlin Stefanov committed 4 years ago

Commit cefc8fb1 parent 31a71f31 file · +1 −0Browse files

Unified · Split

git-path/src/convert.rs+1−0
@@ -231,6 +231,7 @@ pub fn real_path(path: &Path, cwd: &Path, max_symlinks: u8) -> Result<PathBuf, R · 230 unmodified lines
231231 #[cfg(target_os = "windows")]
232232 if let Some(Prefix(p)) = path.components().next() {
233233 real_path.push(p.as_os_str());
234+ real_path.push("\\");
234235 }
235236
236237 if path.is_relative() {