mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 06:47:41 +03:00
remotenames: write bytes to the file
Summary: The write method requires bytes, let's encode what we're writing into it. Reviewed By: quark-zju Differential Revision: D19674450 fbshipit-source-id: 9eaa3393d3d0e6324be39f94d7f31f2228b14412
This commit is contained in:
parent
7182c8c2ca
commit
57d59e5499
@ -207,7 +207,7 @@ def _enableselectivepullforremote(repo, remote):
|
||||
enabledremotes.add(remote)
|
||||
with vfs(_selectivepullenabledfile, "w", atomictemp=True) as f:
|
||||
for renabled in enabledremotes:
|
||||
f.write("%s\n" % renabled)
|
||||
f.write(pycompat.encodeutf8("%s\n" % renabled))
|
||||
|
||||
|
||||
def _disableselectivepull(repo):
|
||||
|
Loading…
Reference in New Issue
Block a user