diff options
author | Matthias Urlichs <smurf@smurf.noris.de> | 2007-09-18 11:29:09 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-18 14:00:20 -0700 |
commit | bf1ee636780f3fcaf358827168fa8a0e26c598e2 (patch) | |
tree | 7ddaf17684a5a1f5e426770f00650f922a1bec0c | |
parent | 7a461b5a33239cfba3bbf0a1deef544c7f1dcfeb (diff) | |
download | git-bf1ee636780f3fcaf358827168fa8a0e26c598e2.tar.gz |
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>
-rwxr-xr-x | git-svnimport.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svnimport.perl b/git-svnimport.perl index d3ad5b904f..aa5b3b2c97 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -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"; |