summaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-22 14:50:02 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-22 14:50:02 +0900
commitcef9271e0181fa22d337dca3a17bf07aa92a03e8 (patch)
treeed8dd5e419be8c24d40d8be277944f59a87979ec /git-cvsimport.perl
parent94c9fd268d4287f6fbfef84793288479905a7e48 (diff)
parent42e6fde5c28150206956ea4be490d886c4ecbd68 (diff)
downloadgit-cef9271e0181fa22d337dca3a17bf07aa92a03e8.tar.gz
Sync with 2.13.6
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-cvsimport.perl')
-rwxr-xr-xgit-cvsimport.perl1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 1e4e65a45d..36929921ea 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -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;