Skip to content

Commit

Permalink
Added closing process in get_git_status (#1)
Browse files Browse the repository at this point in the history
After execution command: git add * git continues to operate without closing. The process does not stop.
  • Loading branch information
alexandr-san4ez authored Sep 27, 2016
1 parent 393d7d1 commit 27c5716
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vendor/clink.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 27c5716

Please sign in to comment.