Re: [PATCH 3/4] git-remote-mediawiki: use dont-update-private capability on dumb push
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 8 quoted lines
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
>
> I prefer not to bother with compatibility of git-remote-mediawiki with
> older Git versions. The recommanded way is to install Git and
> git-remote-mediawiki from the same source tree. People who want to
> keep an old Git version can still use old versions of
> git-remote-mediawiki.
I think that is a sane assumption.
Show 18 quoted lines
>
> contrib/mw-to-git/git-remote-mediawiki.perl | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/contrib/mw-to-git/git-remote-mediawiki.perl b/contrib/mw-to-git/git-remote-mediawiki.perl
> index f8d7d2c..cdc278c 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} "dont-update-private\n";
> + }
> print {*STDOUT} "\n";
> return;
> }