From 018cc9ceda037968603c89a4c77f48385fa146a5 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Thu, 9 Mar 2017 19:22:13 +0300 Subject: [PATCH] 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. --- vendor/clink.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/clink.lua b/vendor/clink.lua index 6124aa7..78013a2 100644 --- a/vendor/clink.lua +++ b/vendor/clink.lua @@ -118,7 +118,7 @@ local function get_git_dir(path) -- Checks if provided directory contains git directory 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 local function has_git_file(dir)