예제 #1
0
 /**
  * @covers \Bit3\GitPhp\GitRepository::commit
  * @covers \Bit3\GitPhp\Command\CommitCommandBuilder::message
  * @covers \Bit3\GitPhp\Command\CommitCommandBuilder::execute
  */
 public function testCommitOnUninitializedRepository()
 {
     $this->setExpectedException('Bit3\\GitPhp\\GitException');
     $this->uninitializedGitRepository->commit()->message('Commit changes')->execute();
 }
예제 #2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $git = new GitRepository($input->getArgument('docroot'));
     $git->commit()->message($input->getArgument('message'))->execute();
 }