Package org.apache.maven.scm.provider.git.jgit.command.remoteinfo

Examples of org.apache.maven.scm.provider.git.jgit.command.remoteinfo.JGitRemoteInfoCommand


    /**
     * {@inheritDoc}
     */
    protected GitCommand getRemoteInfoCommand()
    {
        return new JGitRemoteInfoCommand();
    }
View Full Code Here


                CredentialsProvider credentials = JGitUtils.getCredentials( (GitScmProviderRepository) repo );
                getLogger().info( "cloning [" + branch + "] to " + fileSet.getBasedir() );
                git = Git.cloneRepository().setURI( repository.getFetchUrl() ).setCredentialsProvider( credentials ).setBranch( branch ).setDirectory( fileSet.getBasedir() ).setProgressMonitor( monitor ).call();
            }

            JGitRemoteInfoCommand remoteInfoCommand = new JGitRemoteInfoCommand();
            remoteInfoCommand.setLogger( getLogger() );
            RemoteInfoScmResult result = remoteInfoCommand.executeRemoteInfoCommand( repository, fileSet, null );

            if(git == null) {
                git = Git.open( fileSet.getBasedir() );
            }
           
View Full Code Here

                command.setCredentialsProvider( credentials ).setBranch( branch ).setDirectory( fileSet.getBasedir() );
                command.setProgressMonitor( monitor );
                git = command.call();
            }

            JGitRemoteInfoCommand remoteInfoCommand = new JGitRemoteInfoCommand();
            remoteInfoCommand.setLogger( getLogger() );
            RemoteInfoScmResult result = remoteInfoCommand.executeRemoteInfoCommand( repository, fileSet, null );

            if ( git == null )
            {
                git = Git.open( fileSet.getBasedir() );
            }
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.provider.git.jgit.command.remoteinfo.JGitRemoteInfoCommand

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.