Changed the way directory is defined .git

clink.find_dirs - do not specify the directory if there is Cyrillic in the way.
clink.is_dir - more logical and faster.
This commit is contained in:
Alexandr 2017-03-09 19:22:13 +03:00 committed by GitHub
parent ad0f8fe049
commit 018cc9ceda

2
vendor/clink.lua vendored
View File

@ -118,7 +118,7 @@ local function get_git_dir(path)
-- Checks if provided directory contains git directory -- Checks if provided directory contains git directory
local function has_git_dir(dir) local function has_git_dir(dir)
return #clink.find_dirs(dir..'/.git') > 0 and dir..'/.git' return clink.is_dir(dir..'/.git') and dir..'/.git'
end end
local function has_git_file(dir) local function has_git_file(dir)