Skip to content

Commit

Permalink
fix: do not error when cwd does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Apr 4, 2024
1 parent 3358280 commit 826ad69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/gitsigns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ local cwd_watcher ---@type uv.uv_fs_event_t?

--- @async
local function update_cwd_head()
if not uv.cwd() then
return
end
local paths = vim.fs.find('.git', {
limit = 1,
upward = true,
Expand Down

0 comments on commit 826ad69

Please sign in to comment.