Files
gitlabhq/lib/gitlab
Dmitriy Zaporozhets 541f7675f9 Merge branch 'fix-diff-patch-public-mr' into 'master'
Fix downloading of patches on public merge requests when user logged out

### What does this MR do?

This MR makes it possible to download a diff patch on a public merge request when a user is logged out.

### Why was this MR needed?

An Error 500 would result when a user attempted to click on the "Email Patches" or "Plain Diff" button:

```
NoMethodError - undefined method `id' for nil:NilClass:
  lib/gitlab/backend/shell_env.rb:9:in `set_env'
  lib/gitlab/satellite/action.rb:20:in `in_locked_and_timed_satellite'
  lib/gitlab/satellite/merge_action.rb:49:in `diff_in_satellite'
  app/models/merge_request.rb:219:in `to_diff'
  app/controllers/projects/merge_requests_controller.rb:42:in `block (2 levels) in show'
```

### What are the relevant issue numbers?

* Closes #1225
* Closes #1854 (dup)
* Closes #1858 (dup)

See merge request !872
2015-06-23 15:03:00 +00:00
..
2014-09-29 12:05:17 +03:00
2014-10-06 00:14:46 +02:00
2015-02-24 15:07:24 +01:00
2015-05-13 09:46:22 +02:00
2014-10-06 00:14:46 +02:00
2014-11-06 13:07:42 +02:00
2015-02-24 15:07:24 +01:00
2014-10-31 17:22:16 -07:00
2015-04-14 15:58:28 +02:00
2014-10-06 00:14:46 +02:00
2015-03-24 18:35:57 -07:00
2014-10-06 00:14:46 +02:00
2014-10-06 00:14:46 +02:00
2015-05-23 13:11:23 +03:00
2013-06-06 10:10:51 +09:00