mirror of https://github.com/folke/lazy.nvim.git
fix: get current branch if remote head not available (for local repos only)
This commit is contained in:
parent
88a12027af
commit
d486bc586b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue