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
|
---@param plugin LazyPlugin
|
||||||
---@return GitInfo?
|
---@return GitInfo?
|
||||||
function M.get_target(plugin)
|
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
|
if plugin.commit then
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue