From d03ef945798a0ebd0370dccbbc5c92a1337aaba7 Mon Sep 17 00:00:00 2001 From: Ali Almohaya Date: Tue, 27 Sep 2022 00:45:12 +0300 Subject: [PATCH] fix: typo in get_current_branch_or_commit --- lua/openingh/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/openingh/utils.lua b/lua/openingh/utils.lua index 032af26..65f7600 100644 --- a/lua/openingh/utils.lua +++ b/lua/openingh/utils.lua @@ -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