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

git-svnimport: Use separate arguments in the pipe for git-rev-parse

Some people seem to create SVN branch names with spaces or other shell metacharacters. Signed-off-by: Matthias Urlichs <smurf@smurf.noris.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Matthias Urlichs committed Sep 18, 2007 at 11:29 UTC bf1ee636780f3fcaf358827168fa8a0e26c598e2
1 file changed +1 -1
git-svnimport.perl
+1 -1
@@ -633,7 +633,7 @@ sub commit {
633
634 my $rev;
635 if($revision > $opt_s and defined $parent) {
636 - open(H,"git-rev-parse --verify $parent |");
636 + open(H,'-|',"git-rev-parse","--verify",$parent);
637 $rev = <H>;
638 close(H) or do {
639 print STDERR "$revision: cannot find commit '$parent'!\n";