mirror of
https://github.com/git/git
synced 2024-08-23 18:00:25 +00:00
Merge branch 'jk/cvsimport-quoting'
Typo/Logico fix. * jk/cvsimport-quoting: cvsimport: apply shell-quoting regex globally
This commit is contained in:
commit
6ae18684e1
|
@ -642,7 +642,7 @@ sub is_sha1 {
|
|||
|
||||
sub get_headref ($) {
|
||||
my $name = shift;
|
||||
$name =~ s/'/'\\''/;
|
||||
$name =~ s/'/'\\''/g;
|
||||
my $r = `git rev-parse --verify '$name' 2>/dev/null`;
|
||||
return undef unless $? == 0;
|
||||
chomp $r;
|
||||
|
|
Loading…
Reference in a new issue