remote-mediawiki: limit filenames to legal
commitd1a7050f93768c10fa8c552ba62c3f86193d34c3
authorAntoine Beaupré <anarcat@debian.org>
Sun, 29 Oct 2017 18:15:11 +0000 (29 14:15 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Nov 2017 04:42:38 +0000 (1 13:42 +0900)
tree0914eeb0fdd3aed3eecb47370ef51069be8face0
parentcb5918aa0d50f50e83787f65c2ddc3dcb10159fe
remote-mediawiki: limit filenames to legal

mediawiki pages can have names longer than NAME_MAX (generally 255)
characters, which will fail on checkout. we simply strip out extra
characters, which may mean one page's content will overwrite another
(the last editing winning).

ideally, we would do a more clever system to find unique names, but
that would be more difficult and error prone for a situation that
should rarely happen in the first place.

Signed-off-by: Antoine Beaupré <anarcat@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/Git/Mediawiki.pm