summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-01-16 05:48:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-01-16 05:48:47 (GMT)
commit453e149c8a9da871fb3d99a5f12e790cb9c2b1ff (patch)
tree7aa025e596598e6bde8d6942662464e0b2fb9924 /git-p4.py
parentcf2870addaa747b7038ebfa0b580e92f0affd2d6 (diff)
parent52fc4f195c93eb2b1d1edfae69079646d8c2ea99 (diff)
downloadgit-453e149c8a9da871fb3d99a5f12e790cb9c2b1ff.zip
git-453e149c8a9da871fb3d99a5f12e790cb9c2b1ff.tar.gz
git-453e149c8a9da871fb3d99a5f12e790cb9c2b1ff.tar.bz2
Merge branch 'dl/p4-encode-after-kw-expansion'
Text encoding fix for "git p4". * dl/p4-encode-after-kw-expansion: git-p4: fix syncing file types with pattern
Diffstat (limited to 'git-p4.py')
-rwxr-xr-xgit-p4.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-p4.py b/git-p4.py
index 6ae5bbf..09c9e93 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)