git.samba.org
/
jelmer
/
dulwich-libgit2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
95cec40
)
Don't try and send objects if there are none to send (client hung up already)
author
John Carr
<john.carr@unrouted.co.uk>
Sat, 17 Jan 2009 16:10:19 +0000
(16:10 +0000)
committer
John Carr
<john.carr@unrouted.co.uk>
Sat, 17 Jan 2009 16:10:19 +0000
(16:10 +0000)
dulwich/server.py
patch
|
blob
|
history
diff --git
a/dulwich/server.py
b/dulwich/server.py
index 56f572b988307da2265d367417ee26f6616e026f..bd74eb981befe71a2cfa650cdf5f76663771026d 100644
(file)
--- a/
dulwich/server.py
+++ b/
dulwich/server.py
@@
-146,6
+146,11
@@
class UploadPackHandler(Handler):
graph_walker = ProtocolGraphWalker(self.proto)
num_objects, objects_iter = self.backend.fetch_objects(determine_wants, graph_walker, progress)
graph_walker = ProtocolGraphWalker(self.proto)
num_objects, objects_iter = self.backend.fetch_objects(determine_wants, graph_walker, progress)
+
+ # Do they want any objects?
+ if num_objects == 0:
+ return
+
progress("dul-daemon says what\n")
progress("counting objects: %d, done.\n" % num_objects)
write_pack_data(ProtocolFile(None, write), objects_iter, num_objects)
progress("dul-daemon says what\n")
progress("counting objects: %d, done.\n" % num_objects)
write_pack_data(ProtocolFile(None, write), objects_iter, num_objects)