diff options
author | Abouzar Parvan <[email protected]> | 2022-01-30 20:51:45 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-30 23:21:45 +0330 |
commit | 31a48325cfa98f75a4b88b1de4e80b7e38cb0e99 (patch) | |
tree | b2007d1c3625b616ba7de1b4a77f0dd922978d8b /lua/lvim/utils | |
parent | 36f232279be1e8d4b1933fd88ce5121a74a9f054 (diff) |
chore(plugins): update plugin version (#2225)
* chore(plugins): update plugin version
* fix(lvim-info): make the git branch cmd compatible with mac
Diffstat (limited to 'lua/lvim/utils')
-rw-r--r-- | lua/lvim/utils/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/lvim/utils/git.lua b/lua/lvim/utils/git.lua index c0a67bf0..8f25a2bb 100644 --- a/lua/lvim/utils/git.lua +++ b/lua/lvim/utils/git.lua @@ -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 |