Allow the change event caused by authentication to be handled outside session.
Check new repo details before switching.
Merge branch 'avoid-running-two-updaters' into testing