temp repo should be based on the target, not the source