mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-16 06:37:54 +08:00
dd per shell git opt out
This commit is contained in:
4
vendor/clink.lua
vendored
4
vendor/clink.lua
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user