diff options
author | Klyahin Aleksey <madest92@ozon.ru> | 2021-03-02 21:01:49 +0300 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-03-03 23:38:22 +0800 |
commit | 90c4db1f3ba931b812d9415324d7a8d2769fd6db (patch) | |
tree | fa2fb141caf3458f858e9d9ae587e59471b97628 | |
parent | e62078d023ba436d84458d6e9d7a56f657b613ef (diff) | |
download | gitpython-90c4db1f3ba931b812d9415324d7a8d2769fd6db.tar.gz |
Use UTF-8 encoding when getting information about packed refs
-rw-r--r-- | git/refs/symbolic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index 60cfe554..bd41cb60 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -87,7 +87,7 @@ class SymbolicReference(object): """Returns an iterator yielding pairs of sha1/path pairs (as bytes) for the corresponding refs. :note: The packed refs file will be kept open as long as we iterate""" try: - with open(cls._get_packed_refs_path(repo), 'rt') as fp: + with open(cls._get_packed_refs_path(repo), 'rt', encoding='UTF-8') as fp: for line in fp: line = line.strip() if not line: |