Merge pull request #1299 from alexandr-san4ez/master

Changed the way directory is defined .git
This commit is contained in:
Benjamin Staneck 2017-04-07 02:42:18 +02:00 committed by GitHub
commit 399999d7f7

2
vendor/clink.lua vendored
View File

@ -132,7 +132,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)