protected function assertNoRemoteMaster(GitWorkingCopy $repository)
{
try {
$repository->run(array('rev-parse remote/HEAD'));
} catch (GitException $e) {
// Expected result. The remote master does not exist.
return;
}
throw new \Exception("Expecting that the remote master doesn't exist, but it does.");
}