diff --git a/lua/lazy/manage/git.lua b/lua/lazy/manage/git.lua index 676037f..18bfb2a 100644 --- a/lua/lazy/manage/git.lua +++ b/lua/lazy/manage/git.lua @@ -74,7 +74,7 @@ end ---@param plugin LazyPlugin ---@return GitInfo? function M.get_target(plugin) - local branch = M.get_branch(plugin) + local branch = M.get_branch(plugin) or M.info(plugin.dir) if plugin.commit then return {