docs: protected ObjectId resolveBranchOrTagOrCommitId( Repository repository,
                                                       String branchOrTagOrCommitId ) throws IOException {
          ObjectId objId = repository.resolve(branchOrTagOrCommitId);
          if (objId == null) {
              for (String remoteName : connector.remoteNames()) {
                  String branchRef = branchRefForName(branchOrTagOrCommitId, remoteName);
                  objId = repository.resolve(branchRef);
                  if (objId != null) break;
              }
          }
          return objId;
      }