Skip to content

Commit 85ebfb2

Browse files
committed
Combined commits to add types to base.py and fun.py
1 parent 26ccee1 commit 85ebfb2

File tree

7 files changed

+203
-127
lines changed

7 files changed

+203
-127
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.13
1+
3.1.14

git/refs/symbolic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def _iter_packed_refs(cls, repo):
8787
"""Returns an iterator yielding pairs of sha1/path pairs (as bytes) for the corresponding refs.
8888
:note: The packed refs file will be kept open as long as we iterate"""
8989
try:
90-
with open(cls._get_packed_refs_path(repo), 'rt') as fp:
90+
with open(cls._get_packed_refs_path(repo), 'rt', encoding='UTF-8') as fp:
9191
for line in fp:
9292
line = line.strip()
9393
if not line:
@@ -513,7 +513,7 @@ def _create(cls, repo, path, resolve, reference, force, logmsg=None):
513513
return ref
514514

515515
@classmethod
516-
def create(cls, repo, path, reference='HEAD', force=False, logmsg=None):
516+
def create(cls, repo, path, reference='HEAD', force=False, logmsg=None, **kwargs):
517517
"""Create a new symbolic reference, hence a reference pointing to another reference.
518518
519519
:param repo:

0 commit comments

Comments
 (0)