Package org.eclipse.egit.core.op

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


      GitRepositoryInfo gitRepositoryInfo, String remoteName) {
    for (PushInfo pushInfo : gitRepositoryInfo.getPushInfos())
      try {
        URIish uri = pushInfo.getPushUri() != null ? new URIish(
            pushInfo.getPushUri()) : null;
        ConfigurePushAfterCloneTask task = new ConfigurePushAfterCloneTask(
            remoteName, pushInfo.getPushRefSpec(), uri);
        op.addPostCloneTask(task);
      } catch (URISyntaxException e) {
        Activator.handleError(UIText.GitCloneWizard_failed, e, true);
      }
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 ConfigurePushAfterCloneTask("origin",
        "HEAD:refs/for/master", new URIish("file:///pushtarget")));
    clop.run(null);
    Repository clonedRepo = FileRepositoryBuilder.create(new File(workdir2,
        Constants.DOT_GIT));
    assertEquals(
View Full Code Here

TOP

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

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.