https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114634
Revision: 114634
Author: aaron
Date: 2012-03-30 18:40:07 +0000 (Fri, 30 Mar 2012)
Log Message:
-----------
Switched to using curl since more users will have it
Modified Paths:
--------------
trunk/tools/code-utils/clone-all.php
Modified: trunk/tools/code-utils/clone-all.php
===================================================================
--- trunk/tools/code-utils/clone-all.php 2012-03-30 17:28:33 UTC (rev
114633)
+++ trunk/tools/code-utils/clone-all.php 2012-03-30 18:40:07 UTC (rev
114634)
@@ -5,9 +5,10 @@
$skipRepositories = array( 'test/*', 'operations/*', 'analytics*', 'labs/*',
'integration/*' );
-$command = <<<EOF
-wget https://$gerrit/r/gerrit/rpc/ProjectAdminService
--post-data='{"jsonrpc":"2.0","method":"visibleProjects","params":[],"id":1}'
--header "Content-Type: application/json; charset=utf-8" --header "Accept:
application/json" -O -
-EOF;
+// curl included with Linux or msysgit (Win)
+$command = 'curl -H "Accept: application/json" -H "Content-Type:
application/json; charset=utf-8"' .
+ ' -X POST -d
"{\"jsonrpc\":\"2.0\",\"method\":\"visibleProjects\",\"params\":[],\"id\":1}"' .
+ " https://$gerrit/r/gerrit/rpc/ProjectAdminService";
$totalStart = microtime( true );
$p = popen( $command, "r" );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs