Skip to content

script-sync: guard stash pop on checkout failure - #1

Merged
vamsikalagaturu merged 1 commit into
mainfrom
fix/sync-stash-pop-guard
Aug 15, 2026
Merged

script-sync: guard stash pop on checkout failure#1
vamsikalagaturu merged 1 commit into
mainfrom
fix/sync-stash-pop-guard

Conversation

@vamsikalagaturu

Copy link
Copy Markdown
Contributor

Summary

  • The checkout-failure branch in script-sync popped the stash unguarded ([ "$stashed" -eq 1 ] && git stash pop --quiet), which under set -e would abort the whole script silently if the pop itself conflicted, instead of reporting through note/blocked like the other two stash-pop sites.
  • Now mirrors the guard used at the successful-checkout site: on a conflicting pop, reset --hard and report via note + blocked.

Test plan

  • bash -n script-sync

The pop after a failed tag checkout ran unguarded under set -e, so a
conflicting pop would abort the whole script silently instead of
reporting through note/blocked like the other two stash-pop sites.
@vamsikalagaturu
vamsikalagaturu merged commit be3652d into main Aug 15, 2026
2 checks passed
@vamsikalagaturu
vamsikalagaturu deleted the fix/sync-stash-pop-guard branch August 15, 2026 11:34
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