fix(ci): git reset --hard for staging deploy; fix rollback (BIT-22325) #23

Merged
spark merged 1 commits from task/BIT-21924-staging-smoke-seed into main 2026-05-14 19:38:43 +01:00
Owner

Root cause: Staging CT had diverged local commits from a previous rollback that pushed a revert commit. git pull --ff-only fails with "Not possible to fast-forward".

Fix: Replace git pull --ff-only with git checkout <branch> && git reset --hard origin/<branch> so staging always matches remote state regardless of local history.

Rollback now uses local git reset --hard HEAD@{1} instead of reverting and pushing to origin — staging rollback has no business touching the remote repo.

Ref: BIT-22325

**Root cause:** Staging CT had diverged local commits from a previous rollback that pushed a revert commit. `git pull --ff-only` fails with "Not possible to fast-forward". **Fix:** Replace `git pull --ff-only` with `git checkout <branch> && git reset --hard origin/<branch>` so staging always matches remote state regardless of local history. Rollback now uses local `git reset --hard HEAD@{1}` instead of reverting and pushing to origin — staging rollback has no business touching the remote repo. Ref: BIT-22325
spark added 1 commit 2026-05-14 19:35:06 +01:00
Staging CT had diverged local commits from a previous rollback that pushed a
revert commit to the remote. git pull --ff-only was failing with
"Not possible to fast-forward". Replace with git reset --hard origin/<branch>
so staging always matches remote state regardless of local history.

Rollback now uses git reset --hard HEAD@{1} locally instead of reverting and
pushing to origin — staging rollback has no business touching the remote repo.

Paperclip-Issue: BIT-22325
Paperclip-Agent: tiago-neves
spark merged commit 3e852a022d into main 2026-05-14 19:38:43 +01:00
Sign in to join this conversation.