protected function getGitDirectory()
    {
        if ($this->gitDirectory === null) {
            $this->gitDirectory = $this->getWorktreeDirectory() . '/.git';
        }

        return $this->gitDirectory;
    }
protected function getGitDirectory()
    {
        if ($this->gitDirectory === null) {
            $this->gitDirectory = $this->getWorktreeDirectory() . '/.git';
        }

        return $this->gitDirectory;
    }
protected function getGitDirectory ( ) { if ( $ this -> gitDirectory === null ) { $ this -> gitDirectory = $ this -> getWorktreeDirectory ( ) . '/.git' ; } return $ this -> gitDirectory ; }
Get the git directory.

@throws UserMessageException

@return string
Get the git directory .