dd per shell git opt out

This commit is contained in:
Dax T. Games
2019-11-23 11:54:53 -05:00
parent 3eb82d4095
commit 2428e8529f
4 changed files with 16 additions and 10 deletions

4
vendor/clink.lua vendored
View File

@ -285,10 +285,10 @@ end
-- @return {bool}
---
local function get_git_status_setting()
gitStatusSetting = io.popen("git config cmder.status")
gitStatusSetting = io.popen("git --no-pager config -l")
for line in gitStatusSetting:lines() do
if string.match(line, 'false') then
if string.match(line, 'cmder.status=false') or string.match(line, 'cmder.cmdstatus=false') then
gitStatusSetting:close()
return false
end