mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-09-01 08:15:20 +02:00
chore(plugins): update plugin version (#2225)
* chore(plugins): update plugin version * fix(lvim-info): make the git branch cmd compatible with mac
This commit is contained in:
parent
36f232279b
commit
31a48325cf
2 changed files with 10 additions and 10 deletions
|
@ -89,7 +89,7 @@ end
|
|||
---Get the current Lunarvim development branch
|
||||
---@return string|nil
|
||||
function M.get_lvim_branch()
|
||||
local ret, branch = git_cmd { args = { "branch", "--show-current" } }
|
||||
local ret, branch = git_cmd { args = { "rev-parse", "--abbrev-ref", "HEAD" } }
|
||||
if ret ~= 0 or (not branch or branch[1] == "") then
|
||||
Log:error "Unable to retrieve the name of the current branch. Check the log for further information"
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue