Skip to content

Commit b85c259

Browse files
ActiveChooNByron
authored andcommitted
Fixed setting ref with non-ascii in path
1 parent c074057 commit b85c259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/refs/symbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def set_reference(self, ref: Union[Commit_ish, 'SymbolicReference', str],
352352
fd = lfd.open(write=True, stream=True)
353353
ok = True
354354
try:
355-
fd.write(write_value.encode('ascii') + b'\n')
355+
fd.write(write_value.encode('utf-8') + b'\n')
356356
lfd.commit()
357357
ok = True
358358
finally:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy