Added closing process in get_git_status (#1)

After execution command: git add * git continues to operate without closing. The process does not stop.
This commit is contained in:
Alexandr 2016-09-27 18:48:23 +03:00 committed by Benjamin Staneck
parent d144cd0fc2
commit c8adf424e2

5
vendor/clink.lua vendored
View File

@ -225,9 +225,12 @@ end
-- @return {bool}
---
function get_git_status()
for line in io.popen("git status --no-lock-index --porcelain 2>nul"):lines() do
local file = io.popen("git status --no-lock-index --porcelain 2>nul")
for line in file:lines() do
file:close()
return false
end
file:close()
return true
end