Skip to content

Instantly share code, notes, and snippets.

@timmow
Created October 9, 2013 10:27
Show Gist options
  • Select an option

  • Save timmow/6899225 to your computer and use it in GitHub Desktop.

Select an option

Save timmow/6899225 to your computer and use it in GitHub Desktop.
<?php
use Composer\Repository\Vcs\GitDriver;
use Composer\IO\NullIO;
use Composer\Config;
use Composer\Factory;
require_once 'vendor/autoload.php';
$a = new GitDriver(
array('url' => 'git://digital-gitmirror-01/symfony/pluginCommon/'),
new NullIO,
Factory::createConfig()
);
$a->initialize();
$branches = $a->getBranches();
if (array_key_exists('versions/1.0-mb', $branches)) {
exit(0);
}
exit(1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment