From 27c571636d2a245103a13a7d4d9e1c8b41f9d9ad Mon Sep 17 00:00:00 2001 From: Alexandr Date: Tue, 27 Sep 2016 18:48:23 +0300 Subject: [PATCH] Added closing process in get_git_status (#1) After execution command: git add * git continues to operate without closing. The process does not stop. --- vendor/clink.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/clink.lua b/vendor/clink.lua index 11e643354..8f44e1777 100644 --- a/vendor/clink.lua +++ b/vendor/clink.lua @@ -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