The correct behaviour would be to to apply a timeout when checking for the existence of the repo and not while the repo is being cloned.