Merge pull request #1101 from alexandr-san4ez/development

Added closing process in get_git_status
This commit is contained in:
Martin Kemp 2016-09-27 16:59:21 +01:00 committed by GitHub
commit e36db3eb3d

5
vendor/clink.lua vendored
View File

@ -203,9 +203,12 @@ end
-- @return {bool}
---
function get_git_status()
for line in io.popen("git status --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