mirror of
https://github.com/Llewellynvdm/exa.git
synced 2025-04-08 00:11:51 +00:00
Merge pull request #378 from LlinksRechts/master
fixed git status not working in directories containing '../'
This commit is contained in:
commit
f1a5b646fe
@ -268,7 +268,8 @@ fn reorient(path: &Path) -> PathBuf {
|
|||||||
match current_dir() {
|
match current_dir() {
|
||||||
Err(_) => Path::new(".").join(&path),
|
Err(_) => Path::new(".").join(&path),
|
||||||
Ok(dir) => dir.join(&path),
|
Ok(dir) => dir.join(&path),
|
||||||
}
|
}.canonicalize().unwrap() // errors can be ignored here because they only occur if
|
||||||
|
// the path does not exist / a component is not a folder
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The character to display if the file has been modified, but not staged.
|
/// The character to display if the file has been modified, but not staged.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user