Merge branch 'jk/cvsimport-quoting' into maint-2.10

This commit is contained in:
Junio C Hamano 2017-09-22 14:34:34 +09:00
commit 6d6e2f812d

View File

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