diff options
author | Rémy Coutable <remy@rymai.me> | 2016-09-07 16:14:20 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-09-07 16:14:20 +0000 |
commit | fb82d25df8f1ba4e0cfdfbc52cb1cc20725f9f0c (patch) | |
tree | 8ac8496ac35ade35a385b23893b5a3938793374f /lib | |
parent | ce83fa3b5dbb3a1cbea07a038a33808c99c2df65 (diff) | |
parent | 24424d932f10c1a498a77d742d5ffd6ae18c506d (diff) | |
download | gitlab-ce-fb82d25df8f1ba4e0cfdfbc52cb1cc20725f9f0c.tar.gz |
Merge branch 'fix-allowed-conflict-size' into 'master'
Fix merge conflict size limit
## What does this MR do?
The merge conflict size limit was set to 100 KB, but the docs (and the test repo, which the feature specs use) say 200 KB!
## Are there points in the code the reviewer needs to double check?
Don't think so.
## Why was this MR needed?
Derp.
## Does this MR meet the acceptance criteria?
- [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added
- [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- Tests
- [x] Added for this feature/bug
- [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)
See merge request !6052
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/conflict/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/conflict/parser.rb b/lib/gitlab/conflict/parser.rb index 2d4d55daeeb..98e842cded3 100644 --- a/lib/gitlab/conflict/parser.rb +++ b/lib/gitlab/conflict/parser.rb @@ -18,7 +18,7 @@ module Gitlab def parse(text, our_path:, their_path:, parent_file: nil) raise UnmergeableFile if text.blank? # Typically a binary file - raise UnmergeableFile if text.length > 102400 + raise UnmergeableFile if text.length > 200.kilobytes begin text.to_json |