@matheusbsbs / matheus-bagliano / commits / cdf3ec01ac
Fork 0

lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters

Signed-off-by: Bryan Donlan <bdonlan@fushizen.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Bryan Donlan committed May 4, 2008 at 01:37 UTC cdf3ec01acb8785b8e61ce6e006c9c4c763de663
1 file changed +2 -1
t/lib-git-svn.sh
+2 -1
@@ -20,12 +20,13 @@ then
20 fi
21
22 svnrepo=$PWD/svnrepo
23 +export svnrepo
24
25 perl -w -e "
26 use SVN::Core;
27 use SVN::Repos;
28 \$SVN::Core::VERSION gt '1.1.0' or exit(42);
28 -system(qw/svnadmin create --fs-type fsfs/, '$svnrepo') == 0 or exit(41);
29 +system(qw/svnadmin create --fs-type fsfs/, \$ENV{svnrepo}) == 0 or exit(41);
30 " >&3 2>&4
31 x=$?
32 if test $x -ne 0