Skip to content

Commit 3eba00a

Browse files
committed
Fixing "File too large" error when max_size=0, #293
1 parent b1e49a9 commit 3eba00a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitfs/views/current.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def write(self, path, buf, offset, fh):
103103
is off limit, raise EFBIG error and delete the file.
104104
"""
105105

106-
if offset + len(buf) > self.max_size:
106+
if ( self.max_size > 0 ) and ( offset + len(buf) > self.max_size ):
107107
raise FuseOSError(errno.EFBIG)
108108

109109
result = super(CurrentView, self).write(path, buf, offset, fh)

0 commit comments

Comments
 (0)