Fix repo clone condition.