PartKeepr\CoreBundle\Services\VersionService::extractGITCommit PHP Method

extractGITCommit() public method

Extracts the current commit from GIT.
public extractGITCommit ( ) : string
return string
    public function extractGITCommit()
    {
        $result = shell_exec("git rev-parse HEAD");
        return trim($result);
    }