mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-25 15:49:08 +08:00
Merge pull request #1299 from alexandr-san4ez/master
Changed the way directory is defined .git
This commit is contained in:
commit
399999d7f7
2
vendor/clink.lua
vendored
2
vendor/clink.lua
vendored
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user