Banago\PHPloy\Git::__construct PHP Method

__construct() public method

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];
    }