Last modified: 2013-01-15 19:01:37 UTC
For extensions that does not use the usual directory layout the git change hash does not show up as usual.
// Allow a hook to add/remove items. wfRunHooks( 'SoftwareInfo', array( &$software ) ); function getCreditsForExtension( array $extension ) { $name = isset( $extension['name'] ) ? $extension['name'] : '[no name]'; $vcsText = false; if ( isset( $extension['path'] ) ) { $gitInfo = new GitInfo( dirname( $extension['path'] ) ); $gitHeadSHA1 = $gitInfo->getHeadSHA1(); Should probably just add a hook in there somewhere. Maybe. Or a 'gitpath' property or something: 'gitpath' => dirname( __DIR__ ), And then check both (with gitpath having priority over path) for which to use
Change I8e6fe417: (Bug 43986) Check parent directory for the .git directory
GitInfo newer checks the directory, it just assumes it to be correct.
This should be handled in some other way.