summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorMonard Vong <travelingsoul86@gmail.com>2014-07-24 18:25:59 +0200
committerEric Wong <normalperson@yhbt.net>2014-09-14 08:08:24 +0000
commit785a1c82587ca6e796595e63508ad6b32104d16c (patch)
treecc02bd612127d078b7218b2fdcfaebfdb5c352ef /git-svn.perl
parentce1d3a93a6405b8a0313491df3099919ed3d150f (diff)
downloadgit-785a1c82587ca6e796595e63508ad6b32104d16c.tar.gz
git-svn: branch: avoid systematic prompt for cert/pass
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 0a323722a6..1f41ee14b4 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