git ssb

0+

cel / pull-git-remote-helper



Commit 4d7cb1b2be2593d1acbdfbfbab1d9c642a0017ef

Special case push with no packfile

Avoid index-pack error on pushing just to delete a branch
Charles Lehner committed on 8/1/2016, 6:04:27 AM
Parent: 8f41b2fb860658081bf79a1d8418d90a8ca11a70

Files changed

index.jschanged
index.jsView
@@ -397,8 +397,15 @@
397397 if (err) return cb(err)
398398 if (updates.length === 0) return cb(true)
399399 var progress = progressObjects(options)
400400
401+ var hasPack = !updates.every(function (update) {
402+ return update.new === null
403+ })
404+ if (!hasPack) {
405+ return repo.update(pull.values(updates), pull.empty(), done())
406+ }
407+
401408 if (repo.uploadPack) {
402409 var idxCb = done()
403410 indexPack(lines.passthrough, function (err, idx, packfileFixed) {
404411 if (err) return idxCb(err)

Built with git-ssb-web