Files
gitlabhq/app/models
Dmitriy Zaporozhets dc78ee4e8b Merge branch 'ignore-binary-files-in-git-grep' into 'master'
Ignore binary files in code search to prevent Error 500

Leaving out the -I option in "git grep" would cause an Error 500 because the
resulting line would include "Binary file X matches", which would cause the project search results to crash with the following error:

```
ActionView::Template::Error (wrong argument type nil (expected Regexp)):
    1: - blob = @project.repository.parse_search_result(blob)
    2: .blob-result
    3:   .file-holder
    4:     .file-title
  app/models/repository.rb:742:in `sub'
  app/models/repository.rb:742:in `block in parse_search_result_from_grep'
  app/models/repository.rb:741:in `each_line'
  app/models/repository.rb:741:in `parse_search_result_from_grep'
  app/models/repository.rb:682:in `parse_search_result'
  app/views/search/results/_blob.html.haml:1:in `_app_views_search_results__blob_html_haml__1959871337755590783_162450160'
  app/views/search/_results.html.haml:20:in `_app_views_search__results_html_haml__2198486911700532411_58329920'
  app/views/search/show.html.haml:7:in `_app_views_search_show_html_haml___1698304427272645201_62235300'
```

See merge request !2565
2016-01-23 18:11:08 +00:00
..
2016-01-15 00:35:12 +03:00
2011-10-09 00:36:38 +03:00
2015-08-03 01:52:54 +09:00
2015-12-02 10:54:24 +01:00
2015-05-03 13:38:27 -07:00
2015-04-03 12:28:47 +02:00
2016-01-06 13:09:55 +00:00
2016-01-06 13:09:55 +00:00
2016-01-12 12:29:10 -02:00
2016-01-22 11:24:44 +02:00
2015-12-18 14:19:48 -06:00
2015-08-04 14:33:18 +02:00
2014-08-25 12:25:02 +03:00
2015-12-07 16:57:26 -05:00
2015-12-08 21:00:01 -08:00
2015-12-08 21:00:01 -08:00
2016-01-06 13:09:55 +00:00
2014-10-09 18:22:20 +03:00
2015-05-03 13:38:27 -07:00
2014-10-09 18:22:20 +03:00
2016-01-22 11:24:44 +02:00
2016-01-22 11:24:44 +02:00
2015-11-13 19:22:46 +01:00
2015-08-03 01:52:54 +09:00
2015-03-16 21:38:41 +02:00
2016-01-14 12:09:31 -02:00