utilitaries/gitUtils/src/main/java/gitUtilitaries/GitClonePull.java
/**
     * Function that clone or pull the remote repository
     *
     * @throws GitAPIException
     * @throws IOException
     */
Function that clone or pull the remote repository
@throws GitAPIException
@throws IOException
Function that clone or pull the remote repository @throws GitAPIException @throws IOException
public Git updateRepo() throws GitAPIException, IOException {
        File git = new File(destinationFolder, ".git");
        Git result;
        if (!git.exists()) {
            result = Git.cloneRepository()
                    .setURI(GitURL)
                    .setDirectory(destinationFolder)
                    .call();
        } else {
            result = Git.open(git);
            result.pull().call();
        }
        return result;
    }
public Git updateRepo ( ) throws GitAPIException , IOException { File git = new File ( destinationFolder , ".git" ) ; Git result ; if ( ! git . exists ( ) ) { result = Git . cloneRepository ( ) . setURI ( GitURL ) . setDirectory ( destinationFolder ) . call ( ) ; } else { result = Git . open ( git ) ; result . pull ( ) . call ( ) ; } return result ; }
Function that clone or pull the remote repository
 @throws GitAPIException
 @throws IOException
Function that clone or pull the remote repository @throws GitAPIException @throws IOException