Skip to content

Commit

Permalink
fix: #989
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis6991 committed Apr 17, 2024
1 parent cd6c831 commit 36d961d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lua/gitsigns/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,13 @@ end
--- @param gitdir? string
--- @param toplevel? string
function Repo:try_yadm(dir, gitdir, toplevel)
if not config.yadm.enable and self.gitdir then
if not config.yadm.enable or self.gitdir then
return
end

if not vim.startswith(dir, assert(os.getenv('HOME'))) then
local home = os.getenv('HOME')

if not home or not vim.startswith(dir, home) then
return
end

Expand Down

0 comments on commit 36d961d

Please sign in to comment.