From 14732f451a1639808019aec009d9c502dbd8925d Mon Sep 17 00:00:00 2001 From: Anton Rogov Date: Thu, 5 Jun 2025 06:39:01 +0300 Subject: [PATCH] prevent asking for an upstream if it's set --- lua/neogit/popups/rebase/actions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/neogit/popups/rebase/actions.lua b/lua/neogit/popups/rebase/actions.lua index a05fbf0a6..a8ee1ec85 100644 --- a/lua/neogit/popups/rebase/actions.lua +++ b/lua/neogit/popups/rebase/actions.lua @@ -31,7 +31,7 @@ function M.onto_pushRemote(popup) end function M.onto_upstream(popup) - local upstream = git.branch.upstream(git.branch.current()) + local upstream = git.branch.upstream() if not upstream then upstream = FuzzyFinderBuffer.new(git.refs.list_branches()):open_async() end