Gitonomy\Git\Repository::getGitDir PHP Method

getGitDir() public method

Returns the directory containing git files (git-dir).
public getGitDir ( ) : string
return string
    public function getGitDir()
    {
        return $this->gitDir;
    }

Usage Example

Beispiel #1
0
 public static function registerDeletion(Repository $repository)
 {
     register_shutdown_function(function () use($repository) {
         if ($repository->getWorkingDir()) {
             $dir = $repository->getWorkingDir();
         } else {
             $dir = $repository->getGitDir();
         }
         AbstractTest::deleteDir($dir);
     });
 }
All Usage Examples Of Gitonomy\Git\Repository::getGitDir