code: public boolean hasAtLeastOneReference(Repository repo) {
  
          for (Ref ref : repo.getAllRefs().values()) {
              if (ref.getObjectId() == null)
                  continue;
              return true;
          }
  
          return false;
      }
docs: Checks if a repo has been cloned correctly.
  
  @param repo
  to check
  
  @return true if has been cloned correctly, false otherwise