When a client certificate is required to connect to a Subversion repository,
the certificate location and password may be stored in Subversion config 
Commands like "git svn init/fetch/dcommit" do not prompt for client 
if the location is set in SVN config file, but "git svn branch" does not use 
the config
directory, resulting in prompting for certificate location/password all the 

Build instance of SVN::Client in branch_cmd() with SVN config directory option 
of authentication baton. SVN::Client then builds its own authentication baton
using information from the config directory.

Signed-off-by: Monard Vong <travelingsou...@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 {
        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

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to