Package org.eclipse.egit.core.op

Examples of org.eclipse.egit.core.op.ConfigureFetchAfterCloneTask


  }

  private void configureFetchSpec(CloneOperation op,
      GitRepositoryInfo gitRepositoryInfo, String remoteName) {
    for (String fetchRefSpec : gitRepositoryInfo.getFetchRefSpecs())
      op.addPostCloneTask(new ConfigureFetchAfterCloneTask(remoteName, fetchRefSpec));
  }
View Full Code Here


    URIish uri = new URIish("file:///"
        + repository1.getRepository().getDirectory().toString());
    CloneOperation clop = new CloneOperation(uri, true, null, workdir2,
        "refs/heads/master", "origin", 0);

    clop.addPostCloneTask(new ConfigureFetchAfterCloneTask("origin",
        "refs/notes/review:refs/notes/review"));
    clop.run(null);
    Repository clonedRepo = FileRepositoryBuilder.create(new File(workdir2,
        Constants.DOT_GIT));
    assertTrue(
View Full Code Here

TOP

Related Classes of org.eclipse.egit.core.op.ConfigureFetchAfterCloneTask

Copyright © 2018 www.massapicom. 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.