Skip to content

Commit 4046f74

Browse files
authored
Merge pull request #1807 from Alvaro-Kothe/fix/force-with-lease
2 parents f664d58 + d3fe6df commit 4046f74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/neogit/popups/push/actions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ local function push_to(args, remote, branch, opts)
5151
if res and res:failure() and not using_force and updates_rejected and config.values.prompt_force_push then
5252
logger.error("Attempting force push to " .. name)
5353

54-
local message = "Your branch has diverged from the remote branch. Do you want to force push?"
54+
local message = "Your branch has diverged from the remote branch. Do you want to force push with lease?"
5555
if input.get_permission(message) then
56-
table.insert(args, "--force")
56+
table.insert(args, "--force-with-lease")
5757
res = git.push.push_interactive(remote, branch, args)
5858
end
5959
end

0 commit comments

Comments
 (0)