Mercurial > hg-git
changeset 3:9bd66568bc41
got the packfile clone to work properly
author | Scott Chacon <schacon@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 10:40:38 -0700 |
parents | c43c02cc803a |
children | 9150a8f9d1f2 |
files | __init__.py dulwich/object_store.py |
diffstat | 2 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/__init__.py Wed Apr 22 16:59:04 2009 -0700 +++ b/__init__.py Thu Apr 23 10:40:38 2009 -0700 @@ -80,7 +80,6 @@ commit() except: f.close() - raise def get_transport_and_path(uri): from dulwich.client import TCPGitClient, SSHGitClient, SubprocessGitClient
--- a/dulwich/object_store.py Wed Apr 22 16:59:04 2009 -0700 +++ b/dulwich/object_store.py Thu Apr 23 10:40:38 2009 -0700 @@ -207,8 +207,8 @@ fd, path = tempfile.mkstemp(dir=self.pack_dir, suffix=".pack") f = os.fdopen(fd, 'w') def commit(): - os.fsync(fd) - f.close() + #os.fsync(fd) + #f.close() if os.path.getsize(path) > 0: self.move_in_pack(path) return f, commit