* [PATCH] git-svn: Initialize SVN::Client with svn config instead of, auth for "git svn branch".
@ 2014-07-18 14:58 Monard Vong
2014-07-23 22:33 ` Eric Wong
0 siblings, 1 reply; 3+ messages in thread
From: Monard Vong @ 2014-07-18 14:58 UTC (permalink / raw)
To: git
If a client certificate is required to connect to svn, "git svn branch"
always prompt the user for the certificate location and password,
even though those parameters are stored in svn file "server"
located in svn config dir (generally ~/.subversion).
On the opposite, "git svn info/init/dcommit" read the config dir
and do not prompt if the parameters are set.
This commit initializes for "git svn branch", the SVN::Client with the
'config'
option instead of 'auth'. As decribed in the SVN documentation,
http://search.cpan.org/~mschwern/Alien-SVN-v1.7.17.1/src/subversion/subversion/bindings/swig/perl/native/Client.pm#METHODS
the SVN::Client will then read cached authentication options.
Signed-off-by: Monard Vong <travelingsoul86@gmail.com>
---
git-svn.perl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/git-svn.perl b/git-svn.perl
index 0a32372..1f41ee1 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1161,7 +1161,9 @@ sub cmd_branch {
::_req_svn();
my $ctx = SVN::Client->new(
- auth => Git::SVN::Ra::_auth_providers(),
+ config => SVN::Core::config_get_config(
+ $Git::SVN::Ra::config_dir
+ ),
log_msg => sub {
${ $_[0] } = defined $_message
? $_message
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] git-svn: Initialize SVN::Client with svn config instead of, auth for "git svn branch".
2014-07-18 14:58 [PATCH] git-svn: Initialize SVN::Client with svn config instead of, auth for "git svn branch" Monard Vong
@ 2014-07-23 22:33 ` Eric Wong
2014-07-25 9:49 ` Monard Vong
0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2014-07-23 22:33 UTC (permalink / raw)
To: Monard Vong; +Cc: git
Monard Vong <travelingsoul86@gmail.com> wrote:
> If a client certificate is required to connect to svn, "git svn branch"
> always prompt the user for the certificate location and password,
> even though those parameters are stored in svn file "server"
> located in svn config dir (generally ~/.subversion).
> On the opposite, "git svn info/init/dcommit" read the config dir
> and do not prompt if the parameters are set.
>
> This commit initializes for "git svn branch", the SVN::Client with
> the 'config'
> option instead of 'auth'. As decribed in the SVN documentation,
> http://search.cpan.org/~mschwern/Alien-SVN-v1.7.17.1/src/subversion/subversion/bindings/swig/perl/native/Client.pm#METHODS
> the SVN::Client will then read cached authentication options.
>
> Signed-off-by: Monard Vong <travelingsoul86@gmail.com>
Thanks, I do not have a good way to test this, but the idea seems
correct.
Your patch is whitespace mangled, and the commit message and subject
needs to be improved (see Documentation/SubmittingPatches on how to
describe your changes and how to send them without whitespace mangling.)
Thanks again.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] git-svn: Initialize SVN::Client with svn config instead of, auth for "git svn branch".
2014-07-23 22:33 ` Eric Wong
@ 2014-07-25 9:49 ` Monard Vong
0 siblings, 0 replies; 3+ messages in thread
From: Monard Vong @ 2014-07-25 9:49 UTC (permalink / raw)
Cc: git
Thanks for your reply, I updated commit message and subject, hoping it
would be clearer.
However I messed up "message-id" so it appear as a new message and not
in the current thread.
Sorry, still learning.
Le 24/07/2014 00:33, Eric Wong a écrit :
> Monard Vong <travelingsoul86@gmail.com> wrote:
>> If a client certificate is required to connect to svn, "git svn branch"
>> always prompt the user for the certificate location and password,
>> even though those parameters are stored in svn file "server"
>> located in svn config dir (generally ~/.subversion).
>> On the opposite, "git svn info/init/dcommit" read the config dir
>> and do not prompt if the parameters are set.
>>
>> This commit initializes for "git svn branch", the SVN::Client with
>> the 'config'
>> option instead of 'auth'. As decribed in the SVN documentation,
>> http://search.cpan.org/~mschwern/Alien-SVN-v1.7.17.1/src/subversion/subversion/bindings/swig/perl/native/Client.pm#METHODS
>> the SVN::Client will then read cached authentication options.
>>
>> Signed-off-by: Monard Vong <travelingsoul86@gmail.com>
> Thanks, I do not have a good way to test this, but the idea seems
> correct.
>
> Your patch is whitespace mangled, and the commit message and subject
> needs to be improved (see Documentation/SubmittingPatches on how to
> describe your changes and how to send them without whitespace mangling.)
>
> Thanks again.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-25 9:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 14:58 [PATCH] git-svn: Initialize SVN::Client with svn config instead of, auth for "git svn branch" Monard Vong
2014-07-23 22:33 ` Eric Wong
2014-07-25 9:49 ` Monard Vong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).