summaryrefslogtreecommitdiff
path: root/contrib/mw-to-git/git-remote-mediawiki.perl
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2013-09-02 07:19:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-09-03 18:58:12 (GMT)
commitaa38dc68ea423cddee527b3e2c1d85949783d6b9 (patch)
treec72024107c02577cd177ec932b242e1521640b46 /contrib/mw-to-git/git-remote-mediawiki.perl
parent597b831afb25303218ac60115ac86dd8879e3ce3 (diff)
downloadgit-aa38dc68ea423cddee527b3e2c1d85949783d6b9.zip
git-aa38dc68ea423cddee527b3e2c1d85949783d6b9.tar.gz
git-aa38dc68ea423cddee527b3e2c1d85949783d6b9.tar.bz2
git-remote-mediawiki: use no-private-update capability on dumb push
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/mw-to-git/git-remote-mediawiki.perl')
-rwxr-xr-xcontrib/mw-to-git/git-remote-mediawiki.perl3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
index f8d7d2c..22300a1 100755
--- a/contrib/mw-to-git/git-remote-mediawiki.perl
+++ b/contrib/mw-to-git/git-remote-mediawiki.perl
@@ -590,6 +590,9 @@ sub mw_capabilities {
print {*STDOUT} "import\n";
print {*STDOUT} "list\n";
print {*STDOUT} "push\n";
+ if ($dumb_push) {
+ print {*STDOUT} "no-private-update\n";
+ }
print {*STDOUT} "\n";
return;
}