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
231 #[cfg(target_os = "windows")]231 #[cfg(target_os = "windows")]
232 if let Some(Prefix(p)) = path.components().next() {232 if let Some(Prefix(p)) = path.components().next() {
233 real_path.push(p.as_os_str());233 real_path.push(p.as_os_str());
234 real_path.push("\\");
234 }235 }
235 236
236 if path.is_relative() {237 if path.is_relative() {