Browse Source

Merge branch 'mm/mediawiki-author-fix'

* mm/mediawiki-author-fix:
  git-remote-mediawiki: don't include HTTP login/password in author
maint
Junio C Hamano 13 years ago
parent
commit
2ef89f3856
  1. 4
      contrib/mw-to-git/git-remote-mediawiki

4
contrib/mw-to-git/git-remote-mediawiki

@ -109,6 +109,10 @@ $dumb_push = ($dumb_push eq "true"); @@ -109,6 +109,10 @@ $dumb_push = ($dumb_push eq "true");

my $wiki_name = $url;
$wiki_name =~ s/[^\/]*:\/\///;
# If URL is like http://user:password@example.com/, we clearly don't
# want the password in $wiki_name. While we're there, also remove user
# and '@' sign, to avoid author like MWUser@HTTPUser@host.com
$wiki_name =~ s/^.*@//;

# Commands parser
my $entry;

Loading…
Cancel
Save