fix: typo in get_current_branch_or_commit

This commit is contained in:
Ali Almohaya 2022-09-27 00:45:12 +03:00
parent 89d7ad4281
commit d03ef94579
No known key found for this signature in database
GPG key ID: 4B80BC43FC6007E0

View file

@ -52,7 +52,7 @@ end
function M.get_current_branch_or_commit() function M.get_current_branch_or_commit()
local current_branch_name = M.trim(vim.fn.system("git rev-parse --abbrev-ref HEAD")) 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 if current_branch_name ~= "HEAD" then
return current_branch_name return current_branch_name
end end