diff options
author | NerdyPepper <[email protected]> | 2019-05-21 18:47:40 +0100 |
---|---|---|
committer | NerdyPepper <[email protected]> | 2019-05-21 18:47:40 +0100 |
commit | c3a0eeaa58d6c8981882ce1e2ad633b2c00c8b16 (patch) | |
tree | 32c5e94e6cca9b70e7eabe0a9bb064a2399683fd /src/vcs.rs | |
parent | eef0ab58394e38515eb85a0eb305dbcf77ef4446 (diff) |
fixed: repo status shows incorrect state sometimes
Diffstat (limited to 'src/vcs.rs')
-rw-r--r-- | src/vcs.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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)) |