Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschweikert authored Sep 2, 2024
2 parents f1dc3d1 + a46188c commit 92b019e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/neogit/popups/push/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ local function push_to(args, remote, branch, opts)
else
logger.error("Failed to push to " .. name)

-- Inform the user about missing permissions
if res.code == 128 then
notification.info(table.concat(res.stdout, "\n"))
return
end

-- Only ask the user whether to force push if not already specified
if vim.tbl_contains(args, "--force") or vim.tbl_contains(args, "--force-with-lease") then
return
Expand Down

0 comments on commit 92b019e

Please sign in to comment.