From e25ab072e6b2ffb5e23abdd98d964557eb246f26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Wi=C4=85cek?= Date: Tue, 27 Aug 2024 18:37:51 +0200 Subject: [PATCH] Add return statement --- lua/neogit/popups/push/actions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/neogit/popups/push/actions.lua b/lua/neogit/popups/push/actions.lua index 4c468f05c..42993e1ef 100644 --- a/lua/neogit/popups/push/actions.lua +++ b/lua/neogit/popups/push/actions.lua @@ -43,6 +43,7 @@ local function push_to(args, remote, branch, opts) if string.find(stdout, "Permission denied %(publickey%)") then notification.info(table.concat(res.stdout, "\n")) + return end -- Only ask the user whether to force push if not already specified