aboutsummaryrefslogtreecommitdiff
path: root/src/vcs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/vcs.rs')
-rw-r--r--src/vcs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vcs.rs b/src/vcs.rs
index eddc83c..5bc194d 100644
--- a/src/vcs.rs
+++ b/src/vcs.rs
@@ -5,7 +5,7 @@ use colored::*;
5 5
6pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)> { 6pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)> {
7 let current_dir = env::var("PWD").unwrap(); 7 let current_dir = env::var("PWD").unwrap();
8 8
9 let mut repo: Option<Repository> = None; 9 let mut repo: Option<Repository> = None;
10 let current_path = Path::new(&current_dir[..]); 10 let current_path = Path::new(&current_dir[..]);
11 for path in current_path.ancestors() { 11 for path in current_path.ancestors() {