diff --git a/git-p4.py b/git-p4.py index 6ae5bbfe99..09c9e93ac4 100755 --- a/git-p4.py +++ b/git-p4.py @@ -3031,7 +3031,7 @@ class P4Sync(Command, P4UserMap): regexp = re.compile(pattern, re.VERBOSE) text = ''.join(decode_text_stream(c) for c in contents) text = regexp.sub(r'$\1$', text) - contents = [ text ] + contents = [ encode_text_stream(text) ] if self.largeFileSystem: (git_mode, contents) = self.largeFileSystem.processContent(git_mode, relPath, contents)