public function getTag($path = null)
    {
        $path = $this->resolvePath($path);

        $process = new Process('git describe --tags HEAD', $path);

        if (0 === $process->run()) {
            return trim($process->getOutput());
        }

        throw GitException::process($process);
    }