]> git.proxmox.com Git - libgit2.git/commit
push: don't send a packfile when only issuing delete commands
authorCarlos Martín Nieto <cmn@dwim.me>
Sun, 28 Apr 2013 23:49:40 +0000 (01:49 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Sun, 28 Apr 2013 23:49:40 +0000 (01:49 +0200)
commit51e4da6d8aa4a3a961d49197b004dbf7ccee8612
tree6d9c5337d47e20d83aa5cf9ffc1c084340da35b4
parent78bf2944ed0512f38dfcb56f590373a904ca29c0
push: don't send a packfile when only issuing delete commands

For update and create commands where all the objects are known to
exist in the remote, we must send an empty packfile. However, if all
we issue are delete commands, no packfile must be sent.

Take this into consideration for push.
src/transports/smart_protocol.c