Commit 607f737e93d7ffc3353f8df5ef0e5eef35221fa6
Handle missing refs object
cel committed on 6/9/2017, 12:19:20 AMParent: 435e130aa26d52d723f2341d4aac47427a675d9b
Files changed
lib/repos/pulls.js | changed |
lib/repos/pulls.js | ||
---|---|---|
@@ -159,9 +159,9 @@ | ||
159 | 159 … | return link.value.timestamp > pr.created_at |
160 | 160 … | }), |
161 | 161 … | pull.filter(function (link) { |
162 | 162 … | return link.value.content.type == 'git-update' |
163 | - && ('refs/heads/' + pr.headBranch) in link.value.content.refs | |
163 … | + && ('refs/heads/' + pr.headBranch) in (link.value.content.refs || {}) | |
164 | 164 … | }) |
165 | 165 … | ) |
166 | 166 … | ]), |
167 | 167 … | pull.unique('key'), |
Built with git-ssb-web