Are there any thoughts on managing updates of Mediawiki with git?

I'm not a developer... but I have flirted with the idea a bit.  I program
occasionally here and there-- though my day job is totally unrelated.

I have played with git and I have a couple of Mediawiki installs
that are running from installs via git.  I like that I can roll
forward and roll back easily.

Updates of the wiki in theory should be:
----
pathofwiki# git checkout 1.26.4
pathofwiki# php maintenance/update.php
----

What is opaque to me is the submodules.

The skins, extensions and external libraries have to be updated with
two or three commands... this is missing.  I think it stems from gaps in
my knowledge about git.


https://www.mediawiki.org/wiki/Download_from_Git#Download_an_extension
suggests:
---
cd path/to/extensions
git pull
git submodule update --init --recursive
---

---
If I try the above I get...
cd path/to/extensions
# git pull
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.

    git pull <remote> <branch>

---
Branch info
# git branch
* (detached from 1.26.4)
  master

---
# git submodule update --init --recursive
seems to do nothing


Can someone enlighten me on this or point me to something like
"git for amateurs"?

Thanks in Advance,
Michael


_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to