mirror of
https://github.com/cmderdev/cmder.git
synced 2025-07-29 19:38:55 +08:00
git should no longer require extra file closing after the recent changes
This commit is contained in:
3
vendor/clink.lua
vendored
3
vendor/clink.lua
vendored
@ -210,10 +210,9 @@ end
|
|||||||
local function get_git_status()
|
local function get_git_status()
|
||||||
local file = io.popen("git --no-optional-locks status --porcelain 2>nul")
|
local file = io.popen("git --no-optional-locks status --porcelain 2>nul")
|
||||||
for line in file:lines() do
|
for line in file:lines() do
|
||||||
file:close()
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
file:close()
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user