summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fs/feature/git.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs/feature/git.rs b/src/fs/feature/git.rs
index e07ce91..052a8f8 100644
--- a/src/fs/feature/git.rs
+++ b/src/fs/feature/git.rs
@@ -268,7 +268,8 @@ fn reorient(path: &Path) -> PathBuf {
match current_dir() {
Err(_) => Path::new(".").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.