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