Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.Git.pull()


        try {
          // Note: the call() returns an opened repository already which needs to be closed to avoid file handle leaks!
          System.out.println("Having repository: " + result.getRepository().getDirectory());
          Git git = new Git(result.getRepository());
          git.pull()
          .call();

          System.out.println("Pulled from remote repository to local repository at " + result.getRepository().getDirectory());
        } finally {
          result.close();
View Full Code Here


      catch(Exception ex)
      {
        // If clone fails, try to pull the changes
        try
        {
          git.pull().call();
        }
        catch(Exception exPull)
        {
          // Pull also failed. Throw this exception to caller
          {AsposeConstants.println("Pull also failed.");}
View Full Code Here

            {
                reporter.debugText("JgitFlowInitCommand", "pulling '" + context.getMaster());
                reporter.flush();

                git.checkout().setName(context.getMaster()).call();
                git.pull().call();
            }

            //now setup develop
            if (gfConfig.hasDevelopConfigured() && !force)
            {
View Full Code Here

            {
                reporter.debugText("JgitFlowInitCommand", "pulling '" + context.getDevelop());
                reporter.flush();

                git.checkout().setName(context.getDevelop()).call();
                git.pull().call();
            }

            //setup prefixes
            for (String prefixName : gfConfig.getPrefixNames())
            {
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.