Support switching a read-write clone to other repository in "rebase" mode