Skip to content

Commit

Permalink
Ask to fetch from a remote after adding it
Browse files Browse the repository at this point in the history
  • Loading branch information
CKolkey committed Dec 8, 2024
1 parent 568415f commit 24d1375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lua/neogit/popups/remote/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 24d1375

Please sign in to comment.