fix -r repo -C: was broken due to a logic bug