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);
    }
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);
    }
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 ) ; }
Returns the current Git tag.

@param null|string $path The repository path.

@return string The tag.

@throws GitException If there was an error using Git.
Returns the current Git tag .