diff --git a/vendor/clink.lua b/vendor/clink.lua index 342e374..75393f6 100644 --- a/vendor/clink.lua +++ b/vendor/clink.lua @@ -132,7 +132,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)