Banago\PHPloy\Git::__construct PHP Méthode

__construct() public méthode

Git constructor.
public __construct ( null $repo = null )
$repo null
    public function __construct($repo = null)
    {
        $this->repo = $repo;
        $this->branch = $this->command('rev-parse --abbrev-ref HEAD')[0];
        $this->revision = $this->command('rev-parse HEAD')[0];
    }