Transactions will now update the repository WORK_HEAD and STAGE_HEAD if they modify the branch that the repository is on.