fix: typo in get_current_branch_or_commit
This commit is contained in:
parent
89d7ad4281
commit
d03ef94579
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ end
|
|||
function M.get_current_branch_or_commit()
|
||||
local current_branch_name = M.trim(vim.fn.system("git rev-parse --abbrev-ref HEAD"))
|
||||
|
||||
-- HEAD is detached returing commit hash
|
||||
-- HEAD is detached
|
||||
if current_branch_name ~= "HEAD" then
|
||||
return current_branch_name
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue