diff --git a/git.yazi/main.lua b/git.yazi/main.lua index 0b023d9..b301f13 100644 --- a/git.yazi/main.lua +++ b/git.yazi/main.lua @@ -158,7 +158,7 @@ local function setup(st, opts) Linemode:children_add(function(self) local url = self._file.url - local repo = st.dirs[tostring(url:parent())] + local repo = st.dirs[tostring(url.base or url:parent())] -- TODO: remove this local code if repo then code = repo == CODES.excluded and CODES.ignored or st.repos[repo][tostring(url):sub(#repo + 2)] @@ -175,7 +175,7 @@ local function setup(st, opts) end local function fetch(_, job) - local cwd = job.files[1].url:parent() + local cwd = job.files[1].url.base or job.files[1].url:parent() -- TODO: remove this local repo = root(cwd) if not repo then remove(tostring(cwd))