mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-11 00:39:08 +08:00
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:
parent
ad0f8fe049
commit
018cc9ceda
2
vendor/clink.lua
vendored
2
vendor/clink.lua
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user