aboutsummaryrefslogtreecommitdiff
path: root/src/vcs.rs
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-05-21 18:47:40 +0100
committerNerdyPepper <[email protected]>2019-05-21 18:47:40 +0100
commitc3a0eeaa58d6c8981882ce1e2ad633b2c00c8b16 (patch)
tree32c5e94e6cca9b70e7eabe0a9bb064a2399683fd /src/vcs.rs
parenteef0ab58394e38515eb85a0eb305dbcf77ef4446 (diff)
fixed: repo status shows incorrect state sometimes
Diffstat (limited to 'src/vcs.rs')
-rw-r--r--src/vcs.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vcs.rs b/src/vcs.rs
index 5cdce31..aee4144 100644
--- a/src/vcs.rs
+++ b/src/vcs.rs
@@ -74,10 +74,7 @@ pub fn vcs_status() -> Option<(colored::ColoredString, colored::ColoredString)>
74 repo_stat = stat_char.color(&git_index_modified_color[..]); 74 repo_stat = stat_char.color(&git_index_modified_color[..]);
75 }, 75 },
76 // STATE: committed (changes have been saved in the repo) 76 // STATE: committed (changes have been saved in the repo)
77 _ => { 77 _ => { }
78 let stat_char = env::var("GIT_CLEAN").unwrap_or("ยท".into());
79 repo_stat = stat_char.color(&git_clean_color[..]);
80 }
81 } 78 }
82 } 79 }
83 return Some((branch, repo_stat)) 80 return Some((branch, repo_stat))