Lines Matching full:repo
115 case 'repo':
136 $repo = $this->getSourceRepo($ext);
138 if (!$repo) {
141 } elseif ($this->cloneExtension($ext, $repo, $preferHttps)) {
165 $repo = $this->getSourceRepo($ext);
167 if (!$repo) {
180 } elseif ($this->cloneExtension($ext, $repo, $preferHttps)) {
206 foreach ($repos as $repo) {
207 if (!@chdir($repo)) {
208 $this->error("Could not change into $repo");
212 $this->info("executing $shell in $repo");
217 $this->success("git succeeded in $repo");
219 $this->error("git failed in $repo");
230 foreach ($repos as $repo) {
231 echo "$repo\n";
239 * @param string $repo
243 private function cloneExtension($ext, $repo, $preferHttps = false) argument
255 $sshUrl = $this->httpsToSshUrl($repo);
258 if ($ret !== 0) $this->info("SSH clone failed, trying HTTPS: $repo");
263 $this->info("cloning $ext from $repo");
264 system("git clone $repo $target", $ret);
277 * Convert a HTTPS repo URL to an SSH URL if possible
286 $repo = $m[3];
287 return "git@$host:$user/$repo";
333 $repo = $m[2];
334 return 'https://github.com/' . $user . '/' . $repo . '.git';
340 $repo = $m[2];
341 if (!$repo) $repo = $user;
343 return 'https://git.gitorious.org/' . $user . '/' . $repo . '.git';
349 $repo = $m[2];
350 return 'https://bitbucket.org/' . $user . '/' . $repo . '.git';