Ejemplo n.º 1
0
 /**
  * Gets hash of latest commit
  *
  * @return string
  */
 private function getCurrentCommitHash()
 {
     $colorOutput = false;
     $modifications = $this->vcs->getAllModificationsSince('HEAD~1', $colorOutput);
     $lastModification = reset($modifications);
     return substr($lastModification, 0, strpos($lastModification, ' '));
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 private function getCurrentBranch()
 {
     return $this->vcs->getCurrentBranch();
 }