Merge branch 'jk/cvsimport-quoting'

Typo/Logico fix.

* jk/cvsimport-quoting:
  cvsimport: apply shell-quoting regex globally
This commit is contained in:
Junio C Hamano
2017-12-27 11:16:26 -08:00

View File

@ -642,7 +642,7 @@ sub is_sha1 {
sub get_headref ($) { sub get_headref ($) {
my $name = shift; my $name = shift;
$name =~ s/'/'\\''/; $name =~ s/'/'\\''/g;
my $r = `git rev-parse --verify '$name' 2>/dev/null`; my $r = `git rev-parse --verify '$name' 2>/dev/null`;
return undef unless $? == 0; return undef unless $? == 0;
chomp $r; chomp $r;