public function execute(array $args, $dir = null, $mustRun = false, $quiet = true, array $env = [])
    {
        // If enabled, set the working directory to the repository.
        if ($dir !== false) {
            $dir = $dir ?: $this->repositoryDir;
        }
        // Run the command.
        array_unshift($args, 'git');

        return $this->shellHelper->execute($args, $dir, $mustRun, $quiet, $env + $this->env);
    }