diff options
author | kylo252 <[email protected]> | 2022-02-12 09:17:34 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-02-12 09:17:34 +0100 |
commit | ff9d883f64b75cb36f3164aae9d36a372f8b46d7 (patch) | |
tree | 27f496c5d814fde1bb5950f5580ed476f7fa02d1 /lua/lvim/utils/git.lua | |
parent | 2fa176f23fb8dffbafbac6a1f5e34c1f9c79c3f7 (diff) | |
parent | 564798b83e40e622fb5c1b6f3803b80f42d092ec (diff) |
Merge branch 'rolling'
Diffstat (limited to 'lua/lvim/utils/git.lua')
-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 |