From d486bc586b6a711af64444c4cec52b8b1590295c Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Tue, 29 Nov 2022 08:19:55 +0100 Subject: [PATCH] fix: get current branch if remote head not available (for local repos only) --- lua/lazy/manage/git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {