Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mm/mediawiki-author-fix'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 26 Oct 2011 23:16:31 +0000
(16:16 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 26 Oct 2011 23:16:31 +0000
(16:16 -0700)
* mm/mediawiki-author-fix:
git-remote-mediawiki: don't include HTTP login/password in author
contrib/mw-to-git/git-remote-mediawiki
patch
|
blob
|
history
raw
(from parent 1:
3b6a5d2
)
diff --git
a/contrib/mw-to-git/git-remote-mediawiki
b/contrib/mw-to-git/git-remote-mediawiki
index 0b32d18eaa963492bfb7fb1bb4437763db7b70c3..c18bfa1f1515a8edb27c2d468a2982860a561939 100755
(executable)
--- a/
contrib/mw-to-git/git-remote-mediawiki
+++ b/
contrib/mw-to-git/git-remote-mediawiki
@@
-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;