protected function handleBareRepository(Builder $builder, $reference, $buildPath)
    {
        $gitConfig = parse_ini_file($reference.'/config', true);

        // If it is indeed a bare repository, then extract it into our build path:
        if ($gitConfig['core']['bare']) {
            $cmd = 'mkdir %2$s; git --git-dir="%1$s" archive %3$s | tar -x -C "%2$s"';
            $builder->executeCommand($cmd, $reference, $buildPath, $this->getBranch());
            return true;
        }

        return false;
    }
protected function handleBareRepository(Builder $builder, $reference, $buildPath)
    {
        $gitConfig = parse_ini_file($reference.'/config', true);

        // If it is indeed a bare repository, then extract it into our build path:
        if ($gitConfig['core']['bare']) {
            $cmd = 'mkdir %2$s; git --git-dir="%1$s" archive %3$s | tar -x -C "%2$s"';
            $builder->executeCommand($cmd, $reference, $buildPath, $this->getBranch());
            return true;
        }

        return false;
    }
protected function handleBareRepository ( Builder $ builder , $ reference , $ buildPath ) { $ gitConfig = parse_ini_file ( $ reference . '/config' , true ) ; // If it is indeed a bare repository, then extract it into our build path: if ( $ gitConfig [ 'core' ] [ 'bare' ] ) { $ cmd = 'mkdir %2$s; git --git-dir="%1$s" archive %3$s | tar -x -C "%2$s"' ; $ builder -> executeCommand ( $ cmd , $ reference , $ buildPath , $ this -> getBranch ( ) ) ; return true ; } return false ; }
Check if this is a "bare" git repository, and if so, unarchive it.
@param Builder $builder
@param $reference
@param $buildPath
@return bool
Check if this is a bare git repository and if so unarchive it .