diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-09-22 14:45:30 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-09-22 14:45:30 +0900 |
| commit | 65c9d4bd7bcb3f087b56b659423c82a034ecacbd (patch) | |
| tree | 53520d0d729f8bf79736e5b970f1012416f3197a /git-cvsimport.perl | |
| parent | 3d9c5b5c4461957fbbc0479e037990db04ebb740 (diff) | |
| parent | 39aaab109972d6bbc1d0ffe5d4de47bbd4b8bb07 (diff) | |
Sync with 2.11.4
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; |
