Exemple #1
0
 /**
  * Writes latest revision to the remote
  * revision file
  *
  * @throws Exception if can't update revision file
  */
 public function writeRevision()
 {
     if ($this->syncCommit) {
         $localRevision = $this->syncCommit;
     } else {
         $localRevision = $this->git->localRevision()[0];
     }
     try {
         $this->bridge->put($localRevision, $this->revisionFile);
     } catch (Exception $e) {
         throw new Exception("Could not update the revision file on server: {$e->getMessage()}");
     }
 }