Skip to content

Commit

Permalink
fix: get current branch if remote head not available (for local repos…
Browse files Browse the repository at this point in the history
… only)
  • Loading branch information
folke committed Nov 29, 2022
1 parent 88a1202 commit d486bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/manage/git.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d486bc5

Please sign in to comment.