Make rollback work with locally imported branches