Inheritance: extends BaseVCS
Beispiel #1
0
 /**
  * @expectedException \Liip\RMT\Exception
  * @expectedExceptionMessage Not currently on any branch
  */
 public function testGetCurrentBranchWhenNotInBranch()
 {
     $vcs = new Git();
     exec("git checkout 9aca70b --quiet");
     $vcs->getCurrentBranch();
 }
 /**
  * Checks if the current branch is a release or hotfix branch.
  * 
  * @return boolean
  */
 public function isInTheFlow()
 {
     $branch = $this->git->getCurrentBranch();
     return strpos($branch, self::RELEASE . '/') === 0 || strpos($branch, self::HOTFIX . '/') === 0;
 }