public function update()
    {
        $fs = $this->getFilesystem();
        if ($fs->isDirectory($this->getGitDirectory())) {
            $this->runGit('fetch origin --tags');
        } else {
            $this->initialize();
        }
    }
public function update()
    {
        $fs = $this->getFilesystem();
        if ($fs->isDirectory($this->getGitDirectory())) {
            $this->runGit('fetch origin --tags');
        } else {
            $this->initialize();
        }
    }
public function update ( ) { $ fs = $ this -> getFilesystem ( ) ; if ( $ fs -> isDirectory ( $ this -> getGitDirectory ( ) ) ) { $ this -> runGit ( 'fetch origin --tags' ) ; } else { $ this -> initialize ( ) ; } }
Initializes or update the git repository.

@throws UserMessageException
Initializes or update the git repository .