Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
711194b8
Commit
711194b8
authored
Aug 24, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE->EE: Fix merge conflicts
parent
ca026086
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
26 deletions
+4
-26
app/models/merge_request.rb
app/models/merge_request.rb
+2
-3
spec/lib/gitlab/ldap/adapter_spec.rb
spec/lib/gitlab/ldap/adapter_spec.rb
+0
-12
spec/support/db_cleaner.rb
spec/support/db_cleaner.rb
+2
-11
No files found.
app/models/merge_request.rb
View file @
711194b8
...
...
@@ -961,13 +961,12 @@ class MergeRequest < ActiveRecord::Base
true
end
<<<<<<<
HEAD
def
base_pipeline
@base_pipeline
||=
project
.
pipelines
.
find_by
(
sha:
merge_request_diff
&
.
base_commit_sha
)
=======
end
def
update_project_counter_caches
Projects
::
OpenMergeRequestsCountService
.
new
(
target_project
).
refresh_cache
>>>>>>>
ce
/
master
end
private
...
...
spec/lib/gitlab/ldap/adapter_spec.rb
View file @
711194b8
...
...
@@ -16,11 +16,7 @@ describe Gitlab::LDAP::Adapter do
expect
(
adapter
).
to
receive
(
:ldap_search
)
do
|
arg
|
expect
(
arg
[
:filter
].
to_s
).
to
eq
(
'(uid=johndoe)'
)
expect
(
arg
[
:base
]).
to
eq
(
'dc=example,dc=com'
)
<<<<<<<
HEAD
expect
(
arg
[
:attributes
]).
to
match
(
%w{dn uid cn mail email userPrincipalName memberof}
)
=======
expect
(
arg
[
:attributes
]).
to
match
(
%w{dn uid cn mail email userPrincipalName}
)
>>>>>>>
ce
/
master
end
.
and_return
({})
adapter
.
users
(
'uid'
,
'johndoe'
)
...
...
@@ -30,11 +26,7 @@ describe Gitlab::LDAP::Adapter do
expect
(
adapter
).
to
receive
(
:ldap_search
).
with
(
base:
'uid=johndoe,ou=users,dc=example,dc=com'
,
scope:
Net
::
LDAP
::
SearchScope_BaseObject
,
<<<<<<<
HEAD
attributes:
%w{dn uid cn mail email userPrincipalName memberof}
,
=======
attributes:
%w{dn uid cn mail email userPrincipalName}
,
>>>>>>>
ce
/
master
filter:
nil
).
and_return
({})
...
...
@@ -71,11 +63,7 @@ describe Gitlab::LDAP::Adapter do
it
'uses the right uid attribute when non-default'
do
stub_ldap_config
(
uid:
'sAMAccountName'
)
expect
(
adapter
).
to
receive
(
:ldap_search
).
with
(
<<<<<<<
HEAD
hash_including
(
attributes:
%w{dn sAMAccountName cn mail email userPrincipalName memberof}
)
=======
hash_including
(
attributes:
%w{dn sAMAccountName cn mail email userPrincipalName}
)
>>>>>>>
ce
/
master
).
and_return
({})
adapter
.
users
(
'sAMAccountName'
,
'johndoe'
)
...
...
spec/support/db_cleaner.rb
View file @
711194b8
...
...
@@ -13,21 +13,12 @@ RSpec.configure do |config|
DatabaseCleaner
.
strategy
=
:transaction
end
<<<<<<<
HEAD
config
.
before
(
:each
,
js:
true
)
do
DatabaseCleaner
.
strategy
=
:truncation
,
{
except:
[
'licenses'
]
}
end
config
.
before
(
:each
,
truncate:
true
)
do
DatabaseCleaner
.
strategy
=
:truncation
,
{
except:
[
'licenses'
]
}
=======
config
.
before
(
:each
,
:js
)
do
DatabaseCleaner
.
strategy
=
:truncation
DatabaseCleaner
.
strategy
=
:truncation
,
{
except:
[
'licenses'
]
}
end
config
.
before
(
:each
,
:truncate
)
do
DatabaseCleaner
.
strategy
=
:truncation
>>>>>>>
ce
/
master
DatabaseCleaner
.
strategy
=
:truncation
,
{
except:
[
'licenses'
]
}
end
config
.
before
(
:each
,
:migration
)
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment