mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix: decompilation fixes
This commit is contained in:
parent
ae0b87181d
commit
57d024ef19
4 changed files with 6 additions and 5 deletions
|
@ -141,9 +141,10 @@ end
|
|||
|
||||
---@return {branch: string, hash:string}?
|
||||
function M.git_info(dir)
|
||||
if M.head(dir .. "/.git/HEAD") then
|
||||
local line = M.head(dir .. "/.git/HEAD")
|
||||
if line then
|
||||
---@type string, string
|
||||
local ref, branch = slot1:match("ref: (refs/heads/(.*))")
|
||||
local ref, branch = line:match("ref: (refs/heads/(.*))")
|
||||
|
||||
if ref then
|
||||
return {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue