git-p4: fix syncing file types with pattern
authorDaniel Levin <redacted>
Wed, 23 Dec 2020 14:37:27 +0000 (14:37 +0000)
committerJunio C Hamano <redacted>
Wed, 23 Dec 2020 21:49:40 +0000 (13:49 -0800)
commit52fc4f195c93eb2b1d1edfae69079646d8c2ea99
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 <redacted>
Signed-off-by: Daniel Levin <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-p4.py
git clone https://git.99rst.org/PROJECT