Skip to content

Commit

Permalink
Merge pull request #1011 from MoFo88/git_branch_colouring
Browse files Browse the repository at this point in the history
Fix git branch colouring
  • Loading branch information
Stanzilla authored Jun 28, 2016
2 parents 84d44b1 + 9c0ad9f commit 14a6e59
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vendor/clink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 14a6e59

Please sign in to comment.