DNDeployment::getCommit PHP Method

getCommit() public method

Gets the commit from source. The result is cached upstream in Repository.
public getCommit ( ) : Gitonomy\Git\Commit | null
return Gitonomy\Git\Commit | null
    public function getCommit()
    {
        $repo = $this->getRepository();
        if ($repo) {
            try {
                return $this->Environment()->getCommit($this->SHA);
            } catch (Gitonomy\Git\Exception\ReferenceNotFoundException $ex) {
                return null;
            }
        }
        return null;
    }