Package org.eclipse.jgit.storage.file

Examples of org.eclipse.jgit.storage.file.FileRepository.create()


    String gitdirName = "test" + uniqueId + (bare ? "" : "/") + Constants.DOT_GIT;
    File gitdir = new File(trash, gitdirName).getCanonicalFile();
    FileRepository db = new FileRepository(gitdir);

    assertFalse(gitdir.exists());
    db.create();
    toClose.add(db);
    return db;
  }

  /**
 
View Full Code Here


        File rd = getRepositoryDir();
        // TODO 7: should we cache r here?  Who will be closing r?
        FileRepository r = new FileRepositoryBuilder().setWorkTree(rd).build();

        if (!r.getObjectDatabase().exists()){
          r.create();
         
          try {
        new FilePath(rd).untarFrom(JenkowWorkflowRepository.class.getResourceAsStream("/jenkow-repository-seed.tar"),FilePath.TarCompression.NONE);
      } catch (InterruptedException e1) {
                LOGGER.log(Level.WARNING, "Seeding of jenkow-repository failed",e1);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.