Skip to content
Snippets Groups Projects
Commit 9bd66568 authored by Scott Chacon's avatar Scott Chacon
Browse files

got the packfile clone to work properly

parent c43c02cc
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,6 @@
commit()
except:
f.close()
raise
def get_transport_and_path(uri):
from dulwich.client import TCPGitClient, SSHGitClient, SubprocessGitClient
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment