Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.

  • Loading branch information...
commit 1ff18718ae00bef56ebcb1c574ae4d2106d2da1e 1 parent 83c28ae
Dav Glass authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 index.php
14 index.php
View
@@ -2,15 +2,15 @@
$q = $_SERVER['QUERY_STRING'];
$sha1 = sha1($q);
-function execGit($cmd) {
+function execGit($git, $cmd) {
$output = array();
$result;
$oldUMask = umask(0022);
- exec($cmd . " 2>&1", $output, $result);
+ exec($git.' '.$cmd . " 2>&1", $output, $result);
umask($oldUMask);
- echo('<pre># '.$cmd."\n\n".implode($output, "\n").'</pre>');
+ echo('<pre># git '.$cmd."\n\n".implode($output, "\n").'</pre>');
}
if ($_GET['fetch'] && $_GET['version']) {
@@ -35,11 +35,11 @@ function execGit($cmd) {
//echo('<pre>'.$cmd.'</pre>');
//passthru($cmd);
chdir($base);
- execGit($git.' checkout master');
- execGit($git.' pull');
- execGit($git.' checkout -b '.$_GET['fetch']);
+ execGit($git.'checkout master');
+ execGit($git.'pull');
+ execGit($git.'checkout -b '.$_GET['fetch']);
exec('cp -R '.$base.'/build '.$tag.'/build');
- execGit($git.' checkout master');
+ execGit($git.'checkout master');
echo('Tag sync done, you can now use this tag as a combo URL');
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.