Skip to content

feat(drone): fix merge_plugin: stash unstaged changes before git pull --rebase to prevent dirty-tree abort#288

Open
AIOSAI wants to merge 3 commits intomainfrom
citizen/drone
Open

feat(drone): fix merge_plugin: stash unstaged changes before git pull --rebase to prevent dirty-tree abort#288
AIOSAI wants to merge 3 commits intomainfrom
citizen/drone

Conversation

@AIOSAI
Copy link
Copy Markdown
Owner

@AIOSAI AIOSAI commented Apr 15, 2026

Summary

  • After gh pr merge succeeds, git pull --rebase aborts if working tree has unstaged changes (ERROR 80d2de31)
  • Fix: stash any changes before pull, pop them after
  • git stash is safe when working tree is clean (exits 0, 'No local changes to save')
  • If pop fails after pull, log warning — the merge itself was already successful

Branch

Created by @drone via drone @git pr

AIOSAI and others added 3 commits April 15, 2026 15:16
…e timeout for long-running poller

Co-Authored-By: @drone <drone@aipass>
… --rebase to prevent dirty-tree abort

Co-Authored-By: @drone <drone@aipass>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant