aboutsummaryrefslogtreecommitdiff
path: root/git-cvsimport.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-22 14:43:13 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-22 14:43:17 +0900
commit0a4986d95111da89a416e2a28f5bb5d534c07271 (patch)
tree41971a89ba68ae97e2229e2e98d149e98e65c59a /git-cvsimport.perl
parent3b827444811d7eddeddd44850f5dbbb4d59747f5 (diff)
parent27dea4683b608c5c0487dee74cbda13b62803b73 (diff)
downloadgit-0a4986d95111da89a416e2a28f5bb5d534c07271.tar.gz
git-0a4986d95111da89a416e2a28f5bb5d534c07271.tar.xz
Sync with 2.10.5
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 1e4e65a45..36929921e 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;