Fix git branch name colouring

Colouring fixed when there are some changes in a branch
This commit is contained in:
Łukasz Papierz 2016-03-29 15:30:04 +02:00 committed by Łukasz Papierz
parent 84d44b18f2
commit 9c0ad9fd81

9
vendor/clink.lua vendored
View File

@ -208,11 +208,10 @@ end
-- @return {bool}
---
function get_git_status()
local file = io.popen("git diff --quiet --ignore-submodules HEAD 2>nul")
-- This will get a table with some return stuff
-- rc[3] will be the signal, 0 or 1
local rc = {file:close()}
return rc[3] == 0
for line in io.popen("git status --porcelain 2>nul"):lines() do
return false
end
return true
end
function git_prompt_filter()