Open main menu

Changes

adds simple check for composer.json
For those [https://gerrit.wikimedia.org/r/#/admin/projects/?filter=mediawiki%252Fextensions%252F extensions available in git] you can fetch the latest updates to the code with something like
<source lang="bash">
release=REL1_26
# work within the extensions directory so as not to conflict with the main composer.json
cd extensions
base=`pwd`;
echo "fetching $ext";
git fetch;
# checkout the new release branch you want
git checkout $release;
# and update dependencies if project uses composer
if [ -f "./composer.json" ]; then
composer update;
fi
cd $base;
done
</source>
Also, if you don't even know whether there are submodules in use, you can search for those by looking for .gitmodules or .git '''files''' <code>find . -type f -name .git</code> And if you want to know which extensions may be using composer, you can check <code>find . -maxdepth 2 -name composer.json |xargs grep -l '"require":'</code>
== Preferences ==
4,558

edits