summaryrefslogtreecommitdiff
path: root/git/refs
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-06-08 11:39:20 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-06-08 11:39:20 +0200
commit8828ced5818d793879ae509e144fdad23465d684 (patch)
tree5a3c8c6246c04e98778b66b8d891dd64c49659d2 /git/refs
parenta5a75ab7533de99a4f569b05535061581cb07a41 (diff)
downloadgitpython-8828ced5818d793879ae509e144fdad23465d684.tar.gz
Fixed critical issue that would cause a string to be passed to methods that expect a stream
Diffstat (limited to 'git/refs')
-rw-r--r--git/refs/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/refs/log.py b/git/refs/log.py
index e94c21f0..0e977723 100644
--- a/git/refs/log.py
+++ b/git/refs/log.py
@@ -130,7 +130,7 @@ class RefLog(list, Serializable):
def _read_from_file(self):
try:
- fmap = file_contents_ro_filepath(self._path, stream=False, allow_mmap=True)
+ fmap = file_contents_ro_filepath(self._path, stream=True, allow_mmap=True)
except OSError:
# it is possible and allowed that the file doesn't exist !
return