summaryrefslogtreecommitdiff
path: root/git/refs/symbolic.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-03-04 21:24:11 +0000
committeryobmod <yobmod@gmail.com>2021-03-04 21:24:11 +0000
commit85ebfb2f0dedb18673a2d756274bbcecd1f034c4 (patch)
tree981da71a075b7b9c0c0c05df1f52680e3a00b03c /git/refs/symbolic.py
parent26ccee15ae1712baf68df99d3f5f2fec5517ecbd (diff)
downloadgitpython-85ebfb2f0dedb18673a2d756274bbcecd1f034c4.tar.gz
Combined commits to add types to base.py and fun.py
Diffstat (limited to 'git/refs/symbolic.py')
-rw-r--r--git/refs/symbolic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py
index 60cfe554..22d9c1d5 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:
@@ -513,7 +513,7 @@ class SymbolicReference(object):
return ref
@classmethod
- def create(cls, repo, path, reference='HEAD', force=False, logmsg=None):
+ def create(cls, repo, path, reference='HEAD', force=False, logmsg=None, **kwargs):
"""Create a new symbolic reference, hence a reference pointing to another reference.
:param repo: