diff options
author | Kazutoshi Satoda <k_satoda@f2.dion.ne.jp> | 2016-02-09 00:20:31 +0900 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2016-02-22 02:28:34 +0000 |
commit | 40f47448a91666be8e2befe521525f3f507344f9 (patch) | |
tree | 58aae0460e477243f7c8c8e9bb2ca7c18b658fbb /perl | |
parent | 3df0d26ca6664a20364a323ffe9915459901cf05 (diff) | |
download | git-40f47448a91666be8e2befe521525f3f507344f9.tar.gz git-40f47448a91666be8e2befe521525f3f507344f9.tar.xz |
git-svn: enable "svn.pathnameencoding" on dcommit
Without the initialization of $self->{pathnameencoding}, conversion in
repo_path() is always skipped as $self->{pathnameencoding} is undefined
even if "svn.pathnameencoding" is configured.
The lack of conversion results in mysterious failure of dcommit (e.g.
"Malformed XML") which happen only when a commit involves a change on
non-ASCII path.
[ew: add test case to t9115,
squash LC_ALL=$a_utf8_locale export from Kazutoshi for Cygwin]
Signed-off-by: Kazutoshi SATODA <k_satoda@f2.dion.ne.jp>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'perl')
-rw-r--r-- | perl/Git/SVN/Editor.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perl/Git/SVN/Editor.pm b/perl/Git/SVN/Editor.pm index c50176eec..d9d9bdf33 100644 --- a/perl/Git/SVN/Editor.pm +++ b/perl/Git/SVN/Editor.pm @@ -41,6 +41,7 @@ sub new { "$self->{svn_path}/" : ''; $self->{config} = $opts->{config}; $self->{mergeinfo} = $opts->{mergeinfo}; + $self->{pathnameencoding} = Git::config('svn.pathnameencoding'); return $self; } |