X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft9138-git-svn-authors-prog.sh;h=83cc5fc9d1a381ecd006fa0a203f22dea0825a82;hb=a26df4cd2fdad7451d4ec99f8a339b9e107a4728;hp=a4b00f2a3fcecab62aaabeedd0821e38f179019a;hpb=3a2dd481e51ed3ea01b84c7db4c661a0a3d5279c;p=git.git diff --git a/t/t9138-git-svn-authors-prog.sh b/t/t9138-git-svn-authors-prog.sh index a4b00f2a3..83cc5fc9d 100755 --- a/t/t9138-git-svn-authors-prog.sh +++ b/t/t9138-git-svn-authors-prog.sh @@ -66,4 +66,18 @@ test_expect_success 'authors-file overrode authors-prog' ' ) ' +git --git-dir=x/.git config --unset svn.authorsfile +git --git-dir=x/.git config --unset svn.authorsprog + +test_expect_success 'authors-prog handled special characters in username' ' + svn mkdir -m bad --username "xyz; touch evil" "$svnrepo"/bad && + ( + cd x && + git svn --authors-prog=../svn-authors-prog fetch && + git rev-list -1 --pretty=raw refs/remotes/git-svn | + grep "^author xyz; touch evil " && + ! test -f evil + ) +' + test_done