]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'dl/p4-encode-after-kw-expansion' into maint
authorJunio C Hamano <gitster@pobox.com>
Mon, 8 Feb 2021 22:05:54 +0000 (14:05 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Feb 2021 22:05:54 +0000 (14:05 -0800)
Text encoding fix for "git p4".

* dl/p4-encode-after-kw-expansion:
  git-p4: fix syncing file types with pattern

git-p4.py

index 6ae5bbfe999942f58122de442cb160b53d0b35b9..09c9e93ac401cc95f203e5ba4fa18825d37325ae 100755 (executable)
--- 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)