Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-remote-mediawiki: update comments to reflect credential support
author
Matthieu Moy
<Matthieu.Moy@imag.fr>
Sun, 8 Jul 2012 16:18:28 +0000
(18:18 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 9 Jul 2012 01:44:43 +0000
(18:44 -0700)
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/git-remote-mediawiki
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a7271ad
)
diff --git
a/contrib/mw-to-git/git-remote-mediawiki
b/contrib/mw-to-git/git-remote-mediawiki
index 539718e243ba2474752e14ee6cb1f384eb2baa6b..c07b4f0ee6099fd8329615ac0d5860b7db6db6ec 100755
(executable)
--- a/
contrib/mw-to-git/git-remote-mediawiki
+++ b/
contrib/mw-to-git/git-remote-mediawiki
@@
-26,9
+26,6
@@
# - Git renames could be turned into MediaWiki renames (see TODO
# below)
#
# - Git renames could be turned into MediaWiki renames (see TODO
# below)
#
-# - login/password support requires the user to write the password
-# cleartext in a file (see TODO below).
-#
# - No way to import "one page, and all pages included in it"
#
# - Multiple remote MediaWikis have not been very well tested.
# - No way to import "one page, and all pages included in it"
#
# - Multiple remote MediaWikis have not been very well tested.
@@
-74,9
+71,7
@@
my @tracked_categories = split(/[ \n]/, run_git("config --get-all remote.". $rem
chomp(@tracked_categories);
my $wiki_login = run_git("config --get remote.". $remotename .".mwLogin");
chomp(@tracked_categories);
my $wiki_login = run_git("config --get remote.". $remotename .".mwLogin");
-# TODO: ideally, this should be able to read from keyboard, but we're
-# inside a remote helper, so our stdin is connect to git, not to a
-# terminal.
+# Note: mwPassword is discourraged. Use the credential system instead.
my $wiki_passwd = run_git("config --get remote.". $remotename .".mwPassword");
my $wiki_domain = run_git("config --get remote.". $remotename .".mwDomain");
chomp($wiki_login);
my $wiki_passwd = run_git("config --get remote.". $remotename .".mwPassword");
my $wiki_domain = run_git("config --get remote.". $remotename .".mwDomain");
chomp($wiki_login);