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