git ssb

0+

cel / ssb-pull-requests



Commit bb72c91b2394510f36c8f5c39558cbb8704d3d52

Handle pull requests without commits

Fix %MCaoK15PduM4sB4XL3MQ9XbnObto/8CnyyK2TLlkzhY=.sha256
cel committed on 10/20/2016, 7:33:31 PM
Parent: 3e5813ecfd4f03ed16cdb421b2e6aeb2c5880419

Files changed

index.jschanged
index.jsView
@@ -85,11 +85,14 @@
8585 function (err, headUpdate) {
8686 if (err) return cb(err)
8787 // get the rev of base when head was last updated
8888 getBranchLastUpdate(pr.baseRepo, pr.baseBranch,
89- headUpdate.timestamp, function (err, baseUpdate) {
89 + headUpdate && headUpdate.timestamp, function (err, baseUpdate) {
9090 if (err) return cb(err)
91- cb(null, {base: baseUpdate.rev, head: headUpdate.rev})
91 + cb(null, {
92 + base: baseUpdate && baseUpdate.rev,
93 + head: headUpdate && headUpdate.rev
94 + })
9295 })
9396 })
9497 })
9598 }

Built with git-ssb-web