https://bugzilla.wikimedia.org/show_bug.cgi?id=53972

--- Comment #15 from Bryan Davis <[email protected]> ---
I put a temporary hack in place on the beta nodes that run MediaWiki
(apache0[12], jobrunner01, and videoscaler01) by symlinking
$wgCacheDirectory/gitinfo to $IP/cache/gitinfo. This should make the git
version data visible on the Special:Version page the next time that the MW-Core
hash changes (memcache cache buster).

    deployment-apache01:~
    bd808$ mwscript eval.php --wiki=enwiki
    > var_dump( $gi = new GitInfo( "$IP/extensions/VisualEditor" ) );
    object(GitInfo)#113 (3) {
      ["basedir":protected]=>
      NULL
      ["cacheFile":protected]=>
      string(62)
"/tmp/mw-cache-master/gitinfo/info-extensions-VisualEditor.json"
      ["cache":protected]=>
      array(6) {
        ["head"]=>
        string(40) "0496bd84506927039958cc683a35a5e3b5da2584"
        ["remoteURL"]=>
        string(70)
"https://gerrit.wikimedia.org/r/p/mediawiki/extensions/VisualEditor.git";
        ["branch"]=>
        string(40) "0496bd84506927039958cc683a35a5e3b5da2584"
        ["headCommitDate"]=>
        string(10) "1399417572"
        ["headSHA1"]=>
        string(40) "0496bd84506927039958cc683a35a5e3b5da2584"
        ["@directory"]=>
        string(44) "/a/common/php-master/extensions/VisualEditor"
      }
    }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to