diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-22 14:50:02 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-22 14:50:02 +0900 |
commit | cef9271e0181fa22d337dca3a17bf07aa92a03e8 (patch) | |
tree | ed8dd5e419be8c24d40d8be277944f59a87979ec /git-cvsimport.perl | |
parent | 94c9fd268d4287f6fbfef84793288479905a7e48 (diff) | |
parent | 42e6fde5c28150206956ea4be490d886c4ecbd68 (diff) | |
download | git-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-x | git-cvsimport.perl | 1 |
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; |