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
parent
7a461b5a33
commit
bf1ee63678
|
@ -633,7 +633,7 @@ sub commit {
|
||||||
|
|
||||||
my $rev;
|
my $rev;
|
||||||
if($revision > $opt_s and defined $parent) {
|
if($revision > $opt_s and defined $parent) {
|
||||||
open(H,"git-rev-parse --verify $parent |");
|
open(H,'-|',"git-rev-parse","--verify",$parent);
|
||||||
$rev = <H>;
|
$rev = <H>;
|
||||||
close(H) or do {
|
close(H) or do {
|
||||||
print STDERR "$revision: cannot find commit '$parent'!\n";
|
print STDERR "$revision: cannot find commit '$parent'!\n";
|
||||||
|
|
Loading…
Reference in New Issue