소스 검색

Merge pull request #1013 from wernha/wernha-patch-1

Added flush before fsync
Jelmer Vernooij 2 년 전
부모
커밋
603fd0b957
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      dulwich/file.py

+ 1 - 0
dulwich/file.py

@@ -189,6 +189,7 @@ class _GitFile(object):
         """
         if self._closed:
             return
+        self._file.flush()
         os.fsync(self._file.fileno())
         self._file.close()
         try: