]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-cvsimport.perl
test-path-utils: offer to run a protectNTFS/protectHFS benchmark
[thirdparty/git.git] / git-cvsimport.perl
index 1e4e65a45d16cfcc5a36e6855216e9be8fe0e0b4..36929921ea79006dc659f6996ae158131ccf2b73 100755 (executable)
@@ -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;