git-remote-mediawiki: update comments to reflect credential support
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a7271ad1dc
commit
2da7830d5c
@ -26,9 +26,6 @@
|
|||||||
# - Git renames could be turned into MediaWiki renames (see TODO
|
# - Git renames could be turned into MediaWiki renames (see TODO
|
||||||
# below)
|
# 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"
|
# - No way to import "one page, and all pages included in it"
|
||||||
#
|
#
|
||||||
# - Multiple remote MediaWikis have not been very well tested.
|
# - 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);
|
chomp(@tracked_categories);
|
||||||
|
|
||||||
my $wiki_login = run_git("config --get remote.". $remotename .".mwLogin");
|
my $wiki_login = run_git("config --get remote.". $remotename .".mwLogin");
|
||||||
# TODO: ideally, this should be able to read from keyboard, but we're
|
# Note: mwPassword is discourraged. Use the credential system instead.
|
||||||
# inside a remote helper, so our stdin is connect to git, not to a
|
|
||||||
# terminal.
|
|
||||||
my $wiki_passwd = run_git("config --get remote.". $remotename .".mwPassword");
|
my $wiki_passwd = run_git("config --get remote.". $remotename .".mwPassword");
|
||||||
my $wiki_domain = run_git("config --get remote.". $remotename .".mwDomain");
|
my $wiki_domain = run_git("config --get remote.". $remotename .".mwDomain");
|
||||||
chomp($wiki_login);
|
chomp($wiki_login);
|
||||||
|
Loading…
Reference in New Issue
Block a user