git-p4: fix syncing file types with pattern
commit52fc4f195c93eb2b1d1edfae69079646d8c2ea99
authorDaniel Levin <dendy.ua@gmail.com>
Wed, 23 Dec 2020 14:37:27 +0000 (23 14:37 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Dec 2020 21:49:40 +0000 (23 13:49 -0800)
tree334b1c322abb74199ec944f0d5d1938d94faba46
parent898f80736c75878acc02dc55672317fcc0e0a5a6
git-p4: fix syncing file types with pattern

Example of pattern file type: text+k

Text filtered through the p4 pattern regexp must be converted from
string back to bytes, otherwise 'data' command for the fast-import
will receive extra invalid characters, followed by the fast-import
process error.

CC: Yang Zhao <yang.zhao@skyboxlabs.com>
Signed-off-by: Daniel Levin <dendy.ua@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py