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
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 main2026-05-14 19:38:43 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Root cause: Staging CT had diverged local commits from a previous rollback that pushed a revert commit.
git pull --ff-onlyfails with "Not possible to fast-forward".Fix: Replace
git pull --ff-onlywithgit 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
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