Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8828ced

Browse files
committed
Fixed critical issue that would cause a string to be passed to methods that expect a stream
1 parenta5a75ab commit8828ced

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎git/refs/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(self, filepath=None):
130130

131131
def_read_from_file(self):
132132
try:
133-
fmap=file_contents_ro_filepath(self._path,stream=False,allow_mmap=True)
133+
fmap=file_contents_ro_filepath(self._path,stream=True,allow_mmap=True)
134134
exceptOSError:
135135
# it is possible and allowed that the file doesn't exist !
136136
return

‎git/test/test_reflog.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ def test_base(self):
3434
tdir=tempfile.mktemp(suffix="test_reflogs")
3535
os.mkdir(tdir)
3636

37-
# verify we have a ref - with the creation of a new ref, the reflog
38-
# will be created as well
39-
rlp_master_ro=RefLog.path(self.rorepo.heads.master)
37+
rlp_master_ro=RefLog.path(self.rorepo.head)
4038
assertos.path.isfile(rlp_master_ro)
4139

4240
# simple read

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp