diff options
author | Stan Hu <stanhu@gmail.com> | 2018-11-12 07:44:33 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-11-12 08:46:38 -0800 |
commit | b0535009029a24d58eaea8a02768b4fbd0fd8f66 (patch) | |
tree | ee144583946d8d18da2a00670c0f7f2fcd2006e2 /lib/api/snippets.rb | |
parent | a407bba81a3fbd8b3313bc84e1ddf0ab4415207d (diff) | |
download | gitlab-ce-b0535009029a24d58eaea8a02768b4fbd0fd8f66.tar.gz |
Fix MergeRequestService erroring out on deleted branch
When a branch is deleted, the push commit IDs is an empty array.
The previous change would attempt to call `[].exists?`, which is
invalid. Fix this by returning `MergeRequestDiffCommit.none` instead.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53853
Diffstat (limited to 'lib/api/snippets.rb')
0 files changed, 0 insertions, 0 deletions