fix: get current branch if remote head not available (for local repos only)

This commit is contained in:
Folke Lemaitre 2022-11-29 08:19:55 +01:00
parent 88a12027af
commit d486bc586b
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -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 {