congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
SubmoduleValidator.assertValidGitModulesFile
Code IndexAdd Tabnine to your IDE (free)

How to use
assertValidGitModulesFile
method
in
org.eclipse.jgit.internal.submodule.SubmoduleValidator

Best Java code snippets using org.eclipse.jgit.internal.submodule.SubmoduleValidator.assertValidGitModulesFile (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

private void checkSubmodules()
    throws IOException {
  ObjectDatabase odb = db.getObjectDatabase();
  if (objectChecker == null) {
    return;
  }
  for (GitmoduleEntry entry : objectChecker.getGitsubmodules()) {
    AnyObjectId blobId = entry.getBlobId();
    ObjectLoader blob = odb.open(blobId, Constants.OBJ_BLOB);
    try {
      SubmoduleValidator.assertValidGitModulesFile(
          new String(blob.getBytes(), UTF_8));
    } catch (LargeObjectException | SubmoduleValidationException e) {
      throw new IOException(e);
    }
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit

private void checkGitModules(ProgressMonitor pm, FsckError errors)
    throws IOException {
  pm.beginTask(JGitText.get().validatingGitModules,
      objChecker.getGitsubmodules().size());
  for (GitmoduleEntry entry : objChecker.getGitsubmodules()) {
    AnyObjectId blobId = entry.getBlobId();
    ObjectLoader blob = objdb.open(blobId, Constants.OBJ_BLOB);
    try {
      SubmoduleValidator.assertValidGitModulesFile(
          new String(blob.getBytes(), UTF_8));
    } catch (SubmoduleValidationException e) {
      CorruptObject co = new FsckError.CorruptObject(
          blobId.toObjectId(), Constants.OBJ_BLOB,
          e.getFsckMessageId());
      errors.getCorruptObjects().add(co);
    }
    pm.update(1);
  }
  pm.endTask();
}
origin: berlam/github-bucket

private void checkSubmodules()
    throws IOException {
  ObjectDatabase odb = db.getObjectDatabase();
  if (objectChecker == null) {
    return;
  }
  for (GitmoduleEntry entry : objectChecker.getGitsubmodules()) {
    AnyObjectId blobId = entry.getBlobId();
    ObjectLoader blob = odb.open(blobId, Constants.OBJ_BLOB);
    try {
      SubmoduleValidator.assertValidGitModulesFile(
          new String(blob.getBytes(), UTF_8));
    } catch (LargeObjectException | SubmoduleValidationException e) {
      throw new IOException(e);
    }
  }
}
origin: berlam/github-bucket

private void checkGitModules(ProgressMonitor pm, FsckError errors)
    throws IOException {
  pm.beginTask(JGitText.get().validatingGitModules,
      objChecker.getGitsubmodules().size());
  for (GitmoduleEntry entry : objChecker.getGitsubmodules()) {
    AnyObjectId blobId = entry.getBlobId();
    ObjectLoader blob = objdb.open(blobId, Constants.OBJ_BLOB);
    try {
      SubmoduleValidator.assertValidGitModulesFile(
          new String(blob.getBytes(), UTF_8));
    } catch (SubmoduleValidationException e) {
      CorruptObject co = new FsckError.CorruptObject(
          blobId.toObjectId(), Constants.OBJ_BLOB,
          e.getFsckMessageId());
      errors.getCorruptObjects().add(co);
    }
    pm.update(1);
  }
  pm.endTask();
}
org.eclipse.jgit.internal.submoduleSubmoduleValidatorassertValidGitModulesFile

Javadoc

Validate a .gitmodules file

Popular methods of SubmoduleValidator

  • assertValidSubmoduleName
    Validate name for a submodule
  • assertValidSubmodulePath
    Validate path for a submodule
  • assertValidSubmoduleUri
    Validate URI for a submodule

Popular in Java

  • Reactive rest calls using spring rest template
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • onRequestPermissionsResult (Fragment)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ImageIO (javax.imageio)
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JLabel (javax.swing)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now