Skip to content

Commit 24d1375

Browse files
committed
Ask to fetch from a remote after adding it
1 parent 568415f commit 24d1375

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/neogit/popups/remote/actions.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ function M.add(popup)
5454
else
5555
notification.info("Added remote " .. name)
5656
end
57+
58+
if input.get_permission("Fetch refs from " .. name .. "?") then
59+
git.fetch.fetch_interactive(name, "", { "--tags" })
60+
end
5761
end
5862
end
5963

0 commit comments

Comments
 (0)