{"thread":{"id":"35131","subject":"[PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","startedAt":"2013-10-12T09:23:29Z","lastAt":"2013-10-25T07:24:29Z","messageCount":9,"participants":["arnaud.brejeon@gmail.com","Jonathan Nieder","Eric Wong","Jeff King","arnaud brejeon"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"228874","messageId":"1381569810-2167-1-git-send-email-arnaud.brejeon@gmail.com","threadId":"35131","inReplyTo":null,"subject":"[PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"","fromEmail":"arnaud.brejeon@gmail.com","sentAt":"2013-10-12T09:23:29Z","receivedAt":"2013-10-12T09:23:29Z","isPatch":true,"sender":{"key":"arnaud.brejeon@gmail.com","avatar":null},"body":"From: arnaudbrejeon <arnaud.brejeon@gmail.com>\n\nSigned-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n---\n git-svn.perl           |    3 +++\n perl/Git/SVN/Prompt.pm |   12 +++++++++---\n 2 files changed, 12 insertions(+), 3 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex ff1ce3d..07f0a6c 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -123,6 +123,7 @@ sub opt_prefix { return $_prefix || '' }\n $Git::SVN::Fetcher::_placeholder_filename = \".gitignore\";\n $_q ||= 0;\n my %remote_opts = ( 'username=s' => \\$Git::SVN::Prompt::_username,\n+                    'password=s' => \\$Git::SVN::Prompt::_password,\n                     'config-dir=s' => \\$Git::SVN::Ra::config_dir,\n                     'no-auth-cache' => \\$Git::SVN::Prompt::_no_auth_cache,\n                     'ignore-paths=s' => \\$Git::SVN::Fetcher::_ignore_regex,\n@@ -206,6 +207,7 @@ my %cmd = (\n \t              'parents' => \\$_parents,\n \t              'tag|t' => \\$_tag,\n \t              'username=s' => \\$Git::SVN::Prompt::_username,\n+\t              'password=s' => \\$Git::SVN::Prompt::_password,\n \t              'commit-url=s' => \\$_commit_url } ],\n \ttag => [ sub { $_tag = 1; cmd_branch(@_) },\n \t         'Create a tag in the SVN repository',\n@@ -214,6 +216,7 @@ my %cmd = (\n \t           'dry-run|n' => \\$_dry_run,\n \t           'parents' => \\$_parents,\n \t           'username=s' => \\$Git::SVN::Prompt::_username,\n+\t           'password=s' => \\$Git::SVN::Prompt::_password,\n \t           'commit-url=s' => \\$_commit_url } ],\n \t'set-tree' => [ \\&cmd_set_tree,\n \t                \"Set an SVN repository to a git tree-ish\",\ndiff --git a/perl/Git/SVN/Prompt.pm b/perl/Git/SVN/Prompt.pm\nindex e940b08..a94a847 100644\n--- a/perl/Git/SVN/Prompt.pm\n+++ b/perl/Git/SVN/Prompt.pm\n@@ -2,7 +2,7 @@ package Git::SVN::Prompt;\n use strict;\n use warnings;\n require SVN::Core;\n-use vars qw/$_no_auth_cache $_username/;\n+use vars qw/$_no_auth_cache $_username $_password/;\n \n sub simple {\n \tmy ($cred, $realm, $default_username, $may_save, $pool) = @_;\n@@ -17,8 +17,14 @@ sub simple {\n \t} else {\n \t\tusername($cred, $realm, $may_save, $pool);\n \t}\n-\t$cred->password(_read_password(\"Password for '\" .\n-\t                               $cred->username . \"': \", $realm));\n+\n+\tif (defined $_password && length $_password) {\n+\t\t$cred->password($_password);\n+\t} else {\n+\t\t$cred->password(_read_password(\"Password for '\" .\n+\t\t                               $cred->username . \"': \", $realm));\n+\t}\n+\n \t$cred->may_save($may_save);\n \t$SVN::_Core::SVN_NO_ERROR;\n }\n-- \n1.7.10.2 (Apple Git-33)\n"},{"id":"228875","messageId":"1381569810-2167-2-git-send-email-arnaud.brejeon@gmail.com","threadId":"35131","inReplyTo":"1381569810-2167-1-git-send-email-arnaud.brejeon@gmail.com","subject":"[PATCH 2/2] Add SVN trust-server-cert parameter to git svn to accept SSL server certificates from unknwon authorities without prompting","fromName":"","fromEmail":"arnaud.brejeon@gmail.com","sentAt":"2013-10-12T09:23:30Z","receivedAt":"2013-10-12T09:23:30Z","isPatch":true,"sender":{"key":"arnaud.brejeon@gmail.com","avatar":null},"body":"From: arnaudbrejeon <arnaud.brejeon@gmail.com>\n\nSigned-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n---\n git-svn.perl           |    1 +\n perl/Git/SVN/Prompt.pm |    9 ++++++++-\n 2 files changed, 9 insertions(+), 1 deletion(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 07f0a6c..3dfd4d3 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -124,6 +124,7 @@ $Git::SVN::Fetcher::_placeholder_filename = \".gitignore\";\n $_q ||= 0;\n my %remote_opts = ( 'username=s' => \\$Git::SVN::Prompt::_username,\n                     'password=s' => \\$Git::SVN::Prompt::_password,\n+                    'trust-server-cert' => \\$Git::SVN::Prompt::_trust_server_cert,\n                     'config-dir=s' => \\$Git::SVN::Ra::config_dir,\n                     'no-auth-cache' => \\$Git::SVN::Prompt::_no_auth_cache,\n                     'ignore-paths=s' => \\$Git::SVN::Fetcher::_ignore_regex,\ndiff --git a/perl/Git/SVN/Prompt.pm b/perl/Git/SVN/Prompt.pm\nindex a94a847..71459ad 100644\n--- a/perl/Git/SVN/Prompt.pm\n+++ b/perl/Git/SVN/Prompt.pm\n@@ -2,7 +2,7 @@ package Git::SVN::Prompt;\n use strict;\n use warnings;\n require SVN::Core;\n-use vars qw/$_no_auth_cache $_username $_password/;\n+use vars qw/$_no_auth_cache $_username $_password $_trust_server_cert/;\n \n sub simple {\n \tmy ($cred, $realm, $default_username, $may_save, $pool) = @_;\n@@ -32,6 +32,13 @@ sub simple {\n sub ssl_server_trust {\n \tmy ($cred, $realm, $failures, $cert_info, $may_save, $pool) = @_;\n \t$may_save = undef if $_no_auth_cache;\n+\n+\tif ( defined $_trust_server_cert)\n+\t{\n+\t\t$cred->may_save($may_save);\t\n+\t\treturn $SVN::_Core::SVN_NO_ERROR;\n+\t}\n+\t\n \tprint STDERR \"Error validating server certificate for '$realm':\\n\";\n \t{\n \t\tno warnings 'once';\n-- \n1.7.10.2 (Apple Git-33)\n"},{"id":"228927","messageId":"20131014141127.GA21200@google.com","threadId":"35131","inReplyTo":"1381569810-2167-1-git-send-email-arnaud.brejeon@gmail.com","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2013-10-14T14:11:27Z","receivedAt":"2013-10-14T14:11:27Z","isPatch":true,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\narnaud.brejeon@gmail.com wrote:\n\n> Signed-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n\nThanks.\n\nCan you say a little more about the context?  Do you run a script that\nwants to pass a password to 'git svn', do you type it each time on the\ncommand line, or something else?  Is it ok that the password would\nshow up in \"ps\" output?  Would the platform's keyring or netrc be\nusable here, or is there something in the context that avoids that?\n\n> ---\n>  git-svn.perl           |    3 +++\n>  perl/Git/SVN/Prompt.pm |   12 +++++++++---\n>  2 files changed, 12 insertions(+), 3 deletions(-)\n\nIf we're going to do this, it would also need to be documented in\nDocumentation/git-svn.txt, and ideally tested in one of the t/t91*.sh\ntest scripts.\n\nThe implementation looks reasonable from a quick glance.  Cc-ing\nEric for other comments.\n\nHope that helps,\nJonathan\n\n(patch left unsnipped for reference)\n> diff --git a/git-svn.perl b/git-svn.perl\n> index ff1ce3d..07f0a6c 100755\n> --- a/git-svn.perl\n> +++ b/git-svn.perl\n> @@ -123,6 +123,7 @@ sub opt_prefix { return $_prefix || '' }\n>  $Git::SVN::Fetcher::_placeholder_filename = \".gitignore\";\n>  $_q ||= 0;\n>  my %remote_opts = ( 'username=s' => \\$Git::SVN::Prompt::_username,\n> +                    'password=s' => \\$Git::SVN::Prompt::_password,\n>                      'config-dir=s' => \\$Git::SVN::Ra::config_dir,\n>                      'no-auth-cache' => \\$Git::SVN::Prompt::_no_auth_cache,\n>                      'ignore-paths=s' => \\$Git::SVN::Fetcher::_ignore_regex,\n> @@ -206,6 +207,7 @@ my %cmd = (\n>  \t              'parents' => \\$_parents,\n>  \t              'tag|t' => \\$_tag,\n>  \t              'username=s' => \\$Git::SVN::Prompt::_username,\n> +\t              'password=s' => \\$Git::SVN::Prompt::_password,\n>  \t              'commit-url=s' => \\$_commit_url } ],\n>  \ttag => [ sub { $_tag = 1; cmd_branch(@_) },\n>  \t         'Create a tag in the SVN repository',\n> @@ -214,6 +216,7 @@ my %cmd = (\n>  \t           'dry-run|n' => \\$_dry_run,\n>  \t           'parents' => \\$_parents,\n>  \t           'username=s' => \\$Git::SVN::Prompt::_username,\n> +\t           'password=s' => \\$Git::SVN::Prompt::_password,\n>  \t           'commit-url=s' => \\$_commit_url } ],\n>  \t'set-tree' => [ \\&cmd_set_tree,\n>  \t                \"Set an SVN repository to a git tree-ish\",\n> diff --git a/perl/Git/SVN/Prompt.pm b/perl/Git/SVN/Prompt.pm\n> index e940b08..a94a847 100644\n> --- a/perl/Git/SVN/Prompt.pm\n> +++ b/perl/Git/SVN/Prompt.pm\n> @@ -2,7 +2,7 @@ package Git::SVN::Prompt;\n>  use strict;\n>  use warnings;\n>  require SVN::Core;\n> -use vars qw/$_no_auth_cache $_username/;\n> +use vars qw/$_no_auth_cache $_username $_password/;\n>  \n>  sub simple {\n>  \tmy ($cred, $realm, $default_username, $may_save, $pool) = @_;\n> @@ -17,8 +17,14 @@ sub simple {\n>  \t} else {\n>  \t\tusername($cred, $realm, $may_save, $pool);\n>  \t}\n> -\t$cred->password(_read_password(\"Password for '\" .\n> -\t                               $cred->username . \"': \", $realm));\n> +\n> +\tif (defined $_password && length $_password) {\n> +\t\t$cred->password($_password);\n> +\t} else {\n> +\t\t$cred->password(_read_password(\"Password for '\" .\n> +\t\t                               $cred->username . \"': \", $realm));\n> +\t}\n> +\n>  \t$cred->may_save($may_save);\n>  \t$SVN::_Core::SVN_NO_ERROR;\n>  }\n> -- \n> 1.7.10.2 (Apple Git-33)\n"},{"id":"228938","messageId":"20131014184005.GA3352@dcvr.yhbt.net","threadId":"35131","inReplyTo":"20131014141127.GA21200@google.com","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2013-10-14T18:40:05Z","receivedAt":"2013-10-14T18:40:05Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Jonathan Nieder <jrnieder@gmail.com> wrote:\n> Hi,\n> \n> arnaud.brejeon@gmail.com wrote:\n> \n> > Signed-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n> \n> Thanks.\n> \n> Can you say a little more about the context?  Do you run a script that\n> wants to pass a password to 'git svn', do you type it each time on the\n> command line, or something else?  Is it ok that the password would\n> show up in \"ps\" output?  Would the platform's keyring or netrc be\n> usable here, or is there something in the context that avoids that?\n\nI think using keyring or netrc is more appropriate.  Having a password\non the command-line and visible to all via ps doesn't seem like\nsomething git should support.\n"},{"id":"228961","messageId":"20131014223602.GB12116@sigill.intra.peff.net","threadId":"35131","inReplyTo":"20131014184005.GA3352@dcvr.yhbt.net","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-10-14T22:36:02Z","receivedAt":"2013-10-14T22:36:02Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Oct 14, 2013 at 06:40:05PM +0000, Eric Wong wrote:\n\n> > arnaud.brejeon@gmail.com wrote:\n> > \n> > > Signed-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n> > \n> > Thanks.\n> > \n> > Can you say a little more about the context?  Do you run a script that\n> > wants to pass a password to 'git svn', do you type it each time on the\n> > command line, or something else?  Is it ok that the password would\n> > show up in \"ps\" output?  Would the platform's keyring or netrc be\n> > usable here, or is there something in the context that avoids that?\n> \n> I think using keyring or netrc is more appropriate.  Having a password\n> on the command-line and visible to all via ps doesn't seem like\n> something git should support.\n\nAgreed. We have ready-made git-credential helpers to handle this exact\nproblem. We would need to convert SVN::Prompt to use git-credential\nrather than prompting itself, though. One of the things that held me\nback from writing such a patch is that I thought libsvn already handled\nthings like keychain integration, and it was better for git-svn to be\nmore svn-like than git-like in its access of SVN repos.\n\nAre those already supported out of the box by libsvn? If git's\ncredential helpers are significantly more featureful, it might be worth\nconverting, but if not, I think it makes sense to stay with svn's\nexisting code.\n\n-Peff\n"},{"id":"228977","messageId":"20131014233556.GA31230@dcvr.yhbt.net","threadId":"35131","inReplyTo":"20131014223602.GB12116@sigill.intra.peff.net","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2013-10-14T23:35:56Z","receivedAt":"2013-10-14T23:35:56Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Jeff King <peff@peff.net> wrote:\n> On Mon, Oct 14, 2013 at 06:40:05PM +0000, Eric Wong wrote:\n> \n> > > arnaud.brejeon@gmail.com wrote:\n> > > \n> > > > Signed-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n> > > \n> > > Thanks.\n> > > \n> > > Can you say a little more about the context?  Do you run a script that\n> > > wants to pass a password to 'git svn', do you type it each time on the\n> > > command line, or something else?  Is it ok that the password would\n> > > show up in \"ps\" output?  Would the platform's keyring or netrc be\n> > > usable here, or is there something in the context that avoids that?\n> > \n> > I think using keyring or netrc is more appropriate.  Having a password\n> > on the command-line and visible to all via ps doesn't seem like\n> > something git should support.\n> \n> Agreed. We have ready-made git-credential helpers to handle this exact\n> problem. We would need to convert SVN::Prompt to use git-credential\n> rather than prompting itself, though. One of the things that held me\n> back from writing such a patch is that I thought libsvn already handled\n> things like keychain integration, and it was better for git-svn to be\n> more svn-like than git-like in its access of SVN repos.\n> \n> Are those already supported out of the box by libsvn? If git's\n> credential helpers are significantly more featureful, it might be worth\n> converting, but if not, I think it makes sense to stay with svn's\n> existing code.\n\nI looks like this patch was forgotten once again:\n\nhttp://mid.gmane.org/1371573490-21973-1-git-send-email-matthijs@stdin.nl\n\nMatthijs: can you add a Signed-off-by for your patch?  I'm inclined to\npush it to Junio as-is since it looks reasonable.\nI admit I don't know SVN callbacks anymore well enough and don't have\ntime to test with GNOME.\n"},{"id":"229014","messageId":"A605F10B-EAB3-4AC7-AB5A-4EFA1C505D4E@gmail.com","threadId":"35131","inReplyTo":"20131014233556.GA31230@dcvr.yhbt.net","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"arnaud brejeon","fromEmail":"arnaud.brejeon@gmail.com","sentAt":"2013-10-15T17:07:12Z","receivedAt":"2013-10-15T17:07:12Z","isPatch":true,"sender":{"key":"arnaud.brejeon@gmail.com","avatar":null},"body":"\nLe 15 oct. 2013 à 01:35, Eric Wong <normalperson@yhbt.net> a écrit :\n\n> Jeff King <peff@peff.net> wrote:\n>> On Mon, Oct 14, 2013 at 06:40:05PM +0000, Eric Wong wrote:\n>> \n>>>> arnaud.brejeon@gmail.com wrote:\n>>>> \n>>>>> Signed-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n>>>> \n>>>> Thanks.\n>>>> \n>>>> Can you say a little more about the context?  Do you run a script that\n>>>> wants to pass a password to 'git svn', do you type it each time on the\n>>>> command line, or something else?  Is it ok that the password would\n>>>> show up in \"ps\" output?  Would the platform's keyring or netrc be\n>>>> usable here, or is there something in the context that avoids that?\n>>> \n>>> I think using keyring or netrc is more appropriate.  Having a password\n>>> on the command-line and visible to all via ps doesn't seem like\n>>> something git should support.\n>> \n>> Agreed. We have ready-made git-credential helpers to handle this exact\n>> problem. We would need to convert SVN::Prompt to use git-credential\n>> rather than prompting itself, though. One of the things that held me\n>> back from writing such a patch is that I thought libsvn already handled\n>> things like keychain integration, and it was better for git-svn to be\n>> more svn-like than git-like in its access of SVN repos.\n>> \n>> Are those already supported out of the box by libsvn? If git's\n>> credential helpers are significantly more featureful, it might be worth\n>> converting, but if not, I think it makes sense to stay with svn's\n>> existing code.\n> \n> I looks like this patch was forgotten once again:\n> \n> http://mid.gmane.org/1371573490-21973-1-git-send-email-matthijs@stdin.nl\n> \n> Matthijs: can you add a Signed-off-by for your patch?  I'm inclined to\n> push it to Junio as-is since it looks reasonable.\n> I admit I don't know SVN callbacks anymore well enough and don't have\n> time to test with GNOME.\n\nI wanted to provide some contexts, I should have done before.\nI want to use git svn in some scripts that are launched un-attended. As my SVN server requires a password, I need to provide it but it can not be at user prompt.\nThis is why I wanted to add the password parameter that is available in svn CLI.\n\nI understand the concern regarding the fact that the password can be retrieved through ps.\nYou are right, it would be better to be able to use git-credential or libsvn solution for this purpose.\n\nArnaud\n"},{"id":"229251","messageId":"005DF7EA-CF5A-408F-A145-07F53D836974@gmail.com","threadId":"35131","inReplyTo":"20131014233556.GA31230@dcvr.yhbt.net","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"arnaud brejeon","fromEmail":"arnaud.brejeon@gmail.com","sentAt":"2013-10-21T17:06:29Z","receivedAt":"2013-10-21T17:06:29Z","isPatch":true,"sender":{"key":"arnaud.brejeon@gmail.com","avatar":null},"body":"I played with GIT_ASKPASS and managed to get a fully automated behavior without any user prompt.\nI guess that the patches are not necessary as we can provide the same , it is just less straightforward than direct parameters but I understand the security concerns.\n\nI dont know if you plan to keep GIT_ASKPASS as is, but this environment variable is not mentioned on git svn documentation and I guess just a few people know about it. Moreover, the name is misleading as it handles all the prompts, not only the password one.\n\nArnaud\n\nLe 15 oct. 2013 à 01:35, Eric Wong <normalperson@yhbt.net> a écrit :\n\n> Jeff King <peff@peff.net> wrote:\n>> On Mon, Oct 14, 2013 at 06:40:05PM +0000, Eric Wong wrote:\n>> \n>>>> arnaud.brejeon@gmail.com wrote:\n>>>> \n>>>>> Signed-off-by: Arnaud Brejeon <arnaud.brejeon <at> gmail.com>\n>>>> \n>>>> Thanks.\n>>>> \n>>>> Can you say a little more about the context?  Do you run a script that\n>>>> wants to pass a password to 'git svn', do you type it each time on the\n>>>> command line, or something else?  Is it ok that the password would\n>>>> show up in \"ps\" output?  Would the platform's keyring or netrc be\n>>>> usable here, or is there something in the context that avoids that?\n>>> \n>>> I think using keyring or netrc is more appropriate.  Having a password\n>>> on the command-line and visible to all via ps doesn't seem like\n>>> something git should support.\n>> \n>> Agreed. We have ready-made git-credential helpers to handle this exact\n>> problem. We would need to convert SVN::Prompt to use git-credential\n>> rather than prompting itself, though. One of the things that held me\n>> back from writing such a patch is that I thought libsvn already handled\n>> things like keychain integration, and it was better for git-svn to be\n>> more svn-like than git-like in its access of SVN repos.\n>> \n>> Are those already supported out of the box by libsvn? If git's\n>> credential helpers are significantly more featureful, it might be worth\n>> converting, but if not, I think it makes sense to stay with svn's\n>> existing code.\n> \n> I looks like this patch was forgotten once again:\n> \n> http://mid.gmane.org/1371573490-21973-1-git-send-email-matthijs@stdin.nl\n> \n> Matthijs: can you add a Signed-off-by for your patch?  I'm inclined to\n> push it to Junio as-is since it looks reasonable.\n> I admit I don't know SVN callbacks anymore well enough and don't have\n> time to test with GNOME.\n"},{"id":"229506","messageId":"20131025072429.GB17029@sigill.intra.peff.net","threadId":"35131","inReplyTo":"005DF7EA-CF5A-408F-A145-07F53D836974@gmail.com","subject":"Re: [PATCH 1/2] Add password parameter to git svn commands and use it when provided instead of defaulting to end-user prompt","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-10-25T07:24:29Z","receivedAt":"2013-10-25T07:24:29Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Oct 21, 2013 at 07:06:29PM +0200, arnaud brejeon wrote:\n\n> I dont know if you plan to keep GIT_ASKPASS as is, but this\n> environment variable is not mentioned on git svn documentation and I\n> guess just a few people know about it. Moreover, the name is\n> misleading as it handles all the prompts, not only the password one.\n\nYes, the \"askpass\" name is a little odd, but it is historical. The\ncalling convention was invented for ssh, who used that name (and we do\nrespect SSH_ASKPASS if it is set). Besides being a lousy name for\nrequesting non-password data, it's also a lousy program for doing it.\nThere's no way for the caller to specify \"this is not a password\", so\nthe program always hides the characters as they are typed. It's one of\nthe reasons the \"git credential\" subsystem was invented, which has a\nmore flexible interface.\n\nThe askpass variables are documented in \"git help credentials\". However,\nthe rest of that document does not apply to git-svn, which is unlike the\nrest of git in the way it handles authentication. So it might or might\nnot make sense to point to it from the git-svn docs. Patches welcome if\nyou want to look into it.\n\n-Peff\n"}]}