|
|
@ -1,7 +1,7 @@ |
|
|
|
local builtin = require("telescope.builtin") |
|
|
|
local path = require("plenary.path") |
|
|
|
|
|
|
|
local function git_exists() |
|
|
|
local path = require("pl.path") |
|
|
|
local p = "." |
|
|
|
while true do |
|
|
|
local gitpath = p .. "/.git" |
|
|
@ -12,7 +12,7 @@ local function git_exists() |
|
|
|
else |
|
|
|
p = p .. "/.." |
|
|
|
end |
|
|
|
if path.abspath(p) ~= "/" then |
|
|
|
if path:new(p):absolute() == "/" then |
|
|
|
return false |
|
|
|
end |
|
|
|
end |
|
|
|