Browse Source

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>
maint
Matthias Urlichs 18 years ago committed by Junio C Hamano
parent
commit
bf1ee63678
  1. 2
      git-svnimport.perl

2
git-svnimport.perl

@ -633,7 +633,7 @@ sub commit { @@ -633,7 +633,7 @@ sub commit {

my $rev;
if($revision > $opt_s and defined $parent) {
open(H,"git-rev-parse --verify $parent |");
open(H,'-|',"git-rev-parse","--verify",$parent);
$rev = <H>;
close(H) or do {
print STDERR "$revision: cannot find commit '$parent'!\n";

Loading…
Cancel
Save