mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(git): use os.getenv to get env var. Fixes #5504
This commit is contained in:
parent
bcc075386e
commit
16d700eb65
2 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ function M.get_root(path)
|
|||
end
|
||||
end
|
||||
|
||||
return vim.env.GIT_WORK_TREE
|
||||
return os.getenv("GIT_WORK_TREE")
|
||||
end
|
||||
|
||||
--- Show git log for the current line.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue