From 0a5d9935b5b7dc4f475bbac9bbc6a6a564c2c452 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Mon, 22 Feb 2016 16:14:02 +0100 Subject: [PATCH] Drop processGit --- .../src/Grav/Console/Gpm/InstallCommand.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index ff4091d1e..4fe8dbc9e 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -644,33 +644,6 @@ class InstallCommand extends ConsoleCommand $this->output->writeln(" '- Installation failed or aborted."); } - /** - * @param $package - */ - private function processGit($package) - { - $matches = $this->getGitRegexMatches($package); - - $this->output->writeln("Preparing to Git clone " . $package->name . " from " . $matches[0]); - - $this->output->write(" |- Checking destination... "); - $checks = $this->checkDestination($package); - - if (!$checks) { - $this->output->writeln(" '- Installation failed or aborted."); - $this->output->writeln(''); - } else { - $cmd = 'cd ' . $this->destination . ' && git clone ' . $matches[0] . ' ' . $package->install_path; - exec($cmd); - - // extra white spaces to clear out the buffer properly - $this->output->writeln(" |- Cloning package... ok "); - - $this->output->writeln(" '- Success! "); - $this->output->writeln(''); - } - } - /** * @param $package */