public function getCurrentBranch($dir = null, $mustRun = false) { $args = ['symbolic-ref', '--short', 'HEAD']; return $this->execute($args, $dir, $mustRun); }
/** * Test GitHelper::getCurrentBranch(). */ public function testGetCurrentBranch() { $this->gitHelper->checkOutNew('test'); $this->assertEquals('test', $this->gitHelper->getCurrentBranch()); }