Re: [PATCH 1/2] git-svn: enable "svn.pathnameencoding" on dcommit
- From
- Eric Wong <normalperson@yhbt.net>
- Date
- Feb 15, 2016, 00:30 UTC
- Message-ID
- <20160215003009.GA19400@dcvr.yhbt.net>
- In-Reply-To
- <56B8B23F.2020901@f2.dion.ne.jp>
Kazutoshi Satoda <k_satoda@f2.dion.ne.jp> wrote:
> Signed-off-by: Kazutoshi SATODA <k_satoda@f2.dion.ne.jp>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Thanks, it took me some time to figure out the test case which I will amend:
diff --git a/t/t9115-git-svn-dcommit-funky-renames.sh b/t/t9115-git-svn-dcommit-funky-renames.sh index 6a48e40..82222fd 100755 --- a/t/t9115-git-svn-dcommit-funky-renames.sh +++ b/t/t9115-git-svn-dcommit-funky-renames.sh @@ -77,11 +77,21 @@ test_expect_success 'make a commit to test rebase' ' ' test_expect_success 'git svn rebase works inside a fresh-cloned repository' ' - cd test-rebase && + ( + cd test-rebase && git svn rebase && test -e test-rebase-main && test -e test-rebase - ' + )' + +test_expect_success 'svn.pathnameencoding=cp932 new file on dcommit' ' + neq=$(printf "\201\202") && + git config svn.pathnameencoding cp932 && + echo neq >"$neq" && + git add "$neq" && + git commit -m "neq" && + git svn dcommit +' stop_httpd
-- EW