Class JGitCheckOutCommand

    • Constructor Detail

      • JGitCheckOutCommand

        public JGitCheckOutCommand()
    • Method Detail

      • executeCheckOutCommand

        protected CheckOutScmResult executeCheckOutCommand​(ScmProviderRepository repo,
                                                           ScmFileSet fileSet,
                                                           ScmVersion version,
                                                           boolean recursive,
                                                           boolean shallow)
                                                    throws ScmException
        For git, the given repository is a remote one. We have to clone it first if the working directory does not contain a git repo yet, otherwise we have to git-pull it.

        Execute Check out command line.

        Specified by:
        executeCheckOutCommand in class AbstractCheckOutCommand
        Parameters:
        repo - not null
        fileSet - not null
        version - not null
        recursive - true if recursive check out is wanted, false otherwise.
        shallow - true if shallow check out is wanted, false otherwise.
        Returns:
        the checkout result
        Throws:
        ScmException - if any