fix: check_git_status()

This commit is contained in:
2020-07-25 21:45:01 +08:00
parent 780449e352
commit cea48c108a

View File

@@ -31,7 +31,7 @@ pub fn check_git_status() -> bool {
}, },
Ok(stdout) => if [ Ok(stdout) => if [
"Changes not staged for commit", "Changes not staged for commit",
"Yourbranch is ahead of", "Your branch is ahead of",
"Untracked files" ].iter().any(|s| stdout.contains(s)) { "Untracked files" ].iter().any(|s| stdout.contains(s)) {
warn!("Std out check failed git status: {}", stdout); warn!("Std out check failed git status: {}", stdout);
return false; return false;