From: Bryan Donlan Date: Sun, 4 May 2008 05:37:57 +0000 (-0400) Subject: lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters X-Git-Tag: v1.5.6-rc0~57^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cdf3ec01acb8785b8e61ce6e006c9c4c763de663;p=git.git lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters Signed-off-by: Bryan Donlan Signed-off-by: Junio C Hamano --- diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh index 9decd2e1e..445df78ca 100644 --- a/t/lib-git-svn.sh +++ b/t/lib-git-svn.sh @@ -20,12 +20,13 @@ then fi svnrepo=$PWD/svnrepo +export svnrepo perl -w -e " use SVN::Core; use SVN::Repos; \$SVN::Core::VERSION gt '1.1.0' or exit(42); -system(qw/svnadmin create --fs-type fsfs/, '$svnrepo') == 0 or exit(41); +system(qw/svnadmin create --fs-type fsfs/, \$ENV{svnrepo}) == 0 or exit(41); " >&3 2>&4 x=$? if test $x -ne 0