Examples of URIish


Examples of org.eclipse.jgit.transport.URIish

    Repository db2 = createWorkRepository();

    // setup the first repository
    final StoredConfig config = db.getConfig();
    RemoteConfig remoteConfig = new RemoteConfig(config, "test");
    URIish uri = new URIish(db2.getDirectory().toURI().toURL());
    remoteConfig.addURI(uri);
    remoteConfig.update(config);
    config.save();

    Git git1 = new Git(db);
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    remoteGit = new Git(remoteRepository);

    // setup the first repository to fetch from the second repository
    final StoredConfig config = db.getConfig();
    RemoteConfig remoteConfig = new RemoteConfig(config, "test");
    URIish uri = new URIish(remoteRepository.getDirectory().toURI().toURL());
    remoteConfig.addURI(uri);
    remoteConfig.update(config);
    config.save();
  }
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

  @Override
  protected void run() throws Exception {
    if (localName != null && gitdir != null)
      throw die(CLIText.get().conflictingUsageOf_git_dir_andArguments);

    final URIish uri = new URIish(sourceUri);
    if (localName == null) {
      try {
        localName = uri.getHumanishName();
      } catch (IllegalArgumentException e) {
        throw die(MessageFormat.format(CLIText.get().cannotGuessLocalNameFrom, sourceUri));
      }
    }
    if (gitdir == null)
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    Git git2 = new Git(db2);

    // setup the second repository to fetch from the first repository
    final StoredConfig config = db2.getConfig();
    RemoteConfig remoteConfig = new RemoteConfig(config, "origin");
    URIish uri = new URIish(db.getDirectory().toURI().toURL());
    remoteConfig.addURI(uri);
    remoteConfig.update(config);
    config.save();

    // fetch from first repository
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    return db.getDirectory().getName();
  }

  @Test
  public void testRepositoryNotFound_Dumb() throws Exception {
    URIish uri = toURIish("/dumb.none/not-found");
    Repository dst = createBareRepository();
    Transport t = Transport.open(dst, uri);
    try {
      try {
        t.openFetch();
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    }
  }

  @Test
  public void testRepositoryNotFound_Smart() throws Exception {
    URIish uri = toURIish("/smart.none/not-found");
    Repository dst = createBareRepository();
    Transport t = Transport.open(dst, uri);
    try {
      try {
        t.openFetch();
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    assertEquals(Q, head.getObjectId());
  }

  @Test
  public void testListRemote_Smart_WithQueryParameters() throws Exception {
    URIish myURI = toURIish("/snone/do?r=1&p=test.git");
    Repository dst = createBareRepository();
    Transport t = Transport.open(dst, myURI);
    try {
      try {
        t.openFetch();
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    return db.getDirectory().getName();
  }

  private URIish toURIish(String path) throws URISyntaxException {
    URI u = server.getURI().resolve(path);
    return new URIish(u.toString());
  }
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    return new TestRepository<Repository>(createBareRepository());
  }

  protected URIish toURIish(String path) throws URISyntaxException {
    URI u = server.getURI().resolve(path);
    return new URIish(u.toString());
  }
View Full Code Here

Examples of org.eclipse.jgit.transport.URIish

    remoteGit = new Git(remoteRepository);

    // setup the first repository to fetch from the second repository
    final StoredConfig config = db.getConfig();
    RemoteConfig remoteConfig = new RemoteConfig(config, "test");
    URIish uri = new URIish(remoteRepository.getDirectory().toURI().toURL());
    remoteConfig.addURI(uri);
    remoteConfig.update(config);
    config.save();

    remoteGit.commit().setMessage("initial commit").call();
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.