Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master-1, master-0, and 0.9.4

Don't close file twice.

Changeset 714631cfc2f8

Parent be4bc4614e40

by Jelmer Vernooij

Changes to one file · Browse files at 714631cfc2f8 Showing diff from parent be4bc4614e40 Diff from another changeset...

Change 1 of 1 Show Entire File bin/​dulwich Stacked
 
166
167
168
169
170
171
172
173
174
175
176
 
 
 
177
178
179
 
166
167
168
 
 
 
 
 
 
 
 
169
170
171
172
173
174
@@ -166,14 +166,9 @@
  r = Repo(path)   graphwalker = SimpleFetchGraphWalker(r.heads().values(), r.get_parents)   f, commit = r.object_store.add_pack() - try: - client.fetch_pack(host_path, r.object_store.determine_wants_all, graphwalker, f.write, - sys.stdout.write) - f.close() - commit() - except: - f.close() - raise + client.fetch_pack(host_path, r.object_store.determine_wants_all, + graphwalker, f.write, sys.stdout.write) + commit()      commands = {