original_string: public function update()
      {
          $fs = $this->getFilesystem();
          if ($fs->isDirectory($this->getGitDirectory())) {
              $this->runGit('fetch origin --tags');
          } else {
              $this->initialize();
          }
      }
code: public function update()
      {
          $fs = $this->getFilesystem();
          if ($fs->isDirectory($this->getGitDirectory())) {
              $this->runGit('fetch origin --tags');
          } else {
              $this->initialize();
          }
      }
code_tokens: public function update ( ) { $ fs = $ this -> getFilesystem ( ) ; if ( $ fs -> isDirectory ( $ this -> getGitDirectory ( ) ) ) { $ this -> runGit ( 'fetch origin --tags' ) ; } else { $ this -> initialize ( ) ; } }
docstring: Initializes or update the git repository.
  
  @throws UserMessageException
docstring_tokens: Initializes or update the git repository .