]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-svn: branch: avoid systematic prompt for cert/pass
authorMonard Vong <travelingsoul86@gmail.com>
Thu, 24 Jul 2014 16:25:59 +0000 (18:25 +0200)
committerEric Wong <normalperson@yhbt.net>
Sun, 14 Sep 2014 08:08:24 +0000 (08:08 +0000)
Commands such as "git svn init/fetch/dcommit" do not prompt for client
certificate/password if they are stored in SVN config file.  Make
"git svn branch" consistent with the other commands, as SVN::Client is
capable of building its own authentication baton from information in the
SVN config directory.

Signed-off-by: Monard Vong <travelingsoul86@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl

index 0a323722a601b2cb900385e531d315558b6d3fe9..1f41ee14b4db8d826f381b8ee1d6cb14d2304994 100755 (executable)
@@ -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