1
0
mirror of https://github.com/git/git.git synced 2024-11-20 01:54:43 +01:00
git/perl/Git/SVN
Eric Wong 0b6641557c git-svn: fix auth parameter handling on SVN 1.9.0+
For users with "store-passwords = no" set in the "[auth]" section of
their ~/.subversion/config, SVN 1.9.0+ would fail with the
following message when attempting to call svn_auth_set_parameter:

  Value is not a string (or undef) at Git/SVN/Ra.pm

Ironically, this breakage was caused by r1553823 in subversion:

  "Make svn_auth_set_parameter() usable from Perl bindings."

Since 2007 (602015e0e6ec), git-svn has used a workaround to make
svn_auth_set_parameter usable internally.  However this workaround
breaks under SVN 1.9+, which deals properly with the type mapping
and fails to recognize our workaround.

For pre-1.9.0 SVN, we continue to use the existing workaround for
the lack of proper type mapping in the bindings.

Tested under subversion 1.6.17 and 1.9.3.

I've also verified r1553823 was not backported to SVN 1.8.x:

  BRANCH=http://svn.apache.org/repos/asf/subversion/branches/1.8.x
  svn log -v $BRANCH/subversion/bindings/swig/core.i

ref: https://bugs.debian.org/797705
Cc: 797705@bugs.debian.org
Reported-by: Thierry Vignaud <thierry.vignaud@gmail.com>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Tested-by: Thierry Vignaud <thierry.vignaud@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-01-26 22:30:02 -08:00
..
Memoize git-svn: use YAML format for mergeinfo cache when possible 2012-06-10 08:47:53 +00:00
Editor.pm git-svn: lazy load some modules 2015-02-26 20:19:21 +00:00
Fetcher.pm Merge branch 'svn-maint-fixes' into svn-fixes 2015-02-26 14:03:57 -08:00
GlobSpec.pm Make git-svn branch patterns match complete URL 2012-10-05 22:48:12 +00:00
Log.pm pager: remove 'S' from $LESS by default 2014-05-07 13:41:04 -07:00
Migration.pm comments: fix misuses of "nor" 2014-03-31 15:29:27 -07:00
Prompt.pm Git::SVN::*: add missing "NAME" section to perldoc 2013-05-09 01:07:58 +00:00
Ra.pm git-svn: fix auth parameter handling on SVN 1.9.0+ 2016-01-26 22:30:02 -08:00
Utils.pm git svn: do not overescape URLs (fallback case) 2013-01-17 23:28:12 +00:00