mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-13 11:19:10 +08:00
git should no longer require extra file closing after the recent changes
This commit is contained in:
parent
b88a01822f
commit
5e703796c9
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user