mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 09:49:12 +08:00
Removes error messages when getting repo status
When `get_git_status` fails the inner `os.execute` call print error message to console. This removes all error messages fro such cases.
This commit is contained in:
parent
d8c9d32cb2
commit
2855a699a1
@ -136,7 +136,7 @@ end
|
||||
-- @return {bool}
|
||||
---
|
||||
function get_git_status()
|
||||
return os.execute("git diff --quiet --ignore-submodules HEAD")
|
||||
return os.execute("git diff --quiet --ignore-submodules HEAD 2>nul")
|
||||
end
|
||||
|
||||
function git_prompt_filter()
|
||||
|
Loading…
Reference in New Issue
Block a user