mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
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>
This commit is contained in:
parent
7a461b5a33
commit
bf1ee63678
|
@ -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…
Reference in a new issue