built-in rebase: set ORIG_HEAD just once, before the rebase