From 24d1375dc8fcadeb37207fb82ac14060b8eb6cce Mon Sep 17 00:00:00 2001 From: Cameron Date: Sun, 8 Dec 2024 21:06:32 +0100 Subject: [PATCH] Ask to fetch from a remote after adding it --- lua/neogit/popups/remote/actions.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/neogit/popups/remote/actions.lua b/lua/neogit/popups/remote/actions.lua index 38952f6aa..5582e2549 100644 --- a/lua/neogit/popups/remote/actions.lua +++ b/lua/neogit/popups/remote/actions.lua @@ -54,6 +54,10 @@ function M.add(popup) else notification.info("Added remote " .. name) end + + if input.get_permission("Fetch refs from " .. name .. "?") then + git.fetch.fetch_interactive(name, "", { "--tags" }) + end end end