Skip to content

Commit

Permalink
Merge pull request #378 from LlinksRechts/master
Browse files Browse the repository at this point in the history
fixed git status not working in directories containing '../'
  • Loading branch information
ogham authored Jul 15, 2019
2 parents 2e0e29d + 2fc56d4 commit f1a5b64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fs/feature/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit f1a5b64

Please sign in to comment.