diff options
author | Sean McGivern <sean@gitlab.com> | 2016-08-02 13:56:50 +0100 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-08-12 23:24:46 +0300 |
commit | 3b84cfdc74e27c5f0b94187f5a15c95e3f292554 (patch) | |
tree | 52b3acdc5d2017523a8d6e16f0dff802039b74dc /lib/gitlab/conflict/file.rb | |
parent | 76cd67b0052ddf68ece6edef174755d0e3b4aa8a (diff) | |
download | gitlab-ce-3b84cfdc74e27c5f0b94187f5a15c95e3f292554.tar.gz |
Use same resolution format on FE and BE
Diffstat (limited to 'lib/gitlab/conflict/file.rb')
-rw-r--r-- | lib/gitlab/conflict/file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/conflict/file.rb b/lib/gitlab/conflict/file.rb index 7f10b8ea8fd..b6fa9402d46 100644 --- a/lib/gitlab/conflict/file.rb +++ b/lib/gitlab/conflict/file.rb @@ -44,9 +44,9 @@ module Gitlab section_id ||= line_code(line) case resolution[section_id] - when 'ours' + when 'head' next unless line.type == 'new' - when 'theirs' + when 'origin' next unless line.type == 'old' else raise MissingResolution, "Missing resolution for section ID: #{section_id}" |