Skip to content

Commit

Permalink
Merge branch 'mm/mediawiki-author-fix'
Browse files Browse the repository at this point in the history
* mm/mediawiki-author-fix:
  git-remote-mediawiki: don't include HTTP login/password in author
  • Loading branch information
Junio C Hamano committed Oct 26, 2011
2 parents 3b6a5d2 + 9fb7950 commit 2ef89f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/mw-to-git/git-remote-mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ef89f3

Please sign in to comment.