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
a17ceab3
Commit
a17ceab3
authored
Jun 12, 2017
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in the Project model
parent
1bb462d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
app/models/project.rb
app/models/project.rb
+1
-20
No files found.
app/models/project.rb
View file @
a17ceab3
...
...
@@ -66,15 +66,10 @@ class Project < ActiveRecord::Base
# update visibility_level of forks
after_update
:update_forks_visibility_level
<<<<<<<
HEAD
after_update
:remove_mirror_repository_reference
,
if:
->
(
project
)
{
project
.
mirror?
&&
project
.
import_url_updated?
}
after_validation
:check_pending_delete
=======
>>>>>>>
ce
-
com
/
master
after_validation
:check_pending_delete
acts_as_taggable
...
...
@@ -571,15 +566,11 @@ class Project < ActiveRecord::Base
ProjectCacheWorker
.
perform_async
(
self
.
id
)
end
<<<<<<<
HEAD
self
.
import_data
&
.
destroy
unless
mirror?
=======
remove_import_data
end
def
remove_import_data
import_data
&
.
destroy
>>>>>>>
ce
-
com
/
master
import_data
&
.
destroy
unless
mirror?
end
def
import_url
=
(
value
)
...
...
@@ -1255,13 +1246,6 @@ class Project < ActiveRecord::Base
@wiki
||=
ProjectWiki
.
new
(
self
,
self
.
owner
)
end
<<<<<<<
HEAD
def
reference_issue_tracker?
default_issues_tracker?
||
jira_tracker_active?
end
=======
>>>>>>>
ce
-
com
/
master
def
jira_tracker_active?
jira_tracker?
&&
jira_service
.
active
end
...
...
@@ -1401,7 +1385,6 @@ class Project < ActiveRecord::Base
end
end
<<<<<<<
HEAD
def
merge_method
if
self
.
merge_requests_ff_only_enabled
:ff
...
...
@@ -1460,8 +1443,6 @@ class Project < ActiveRecord::Base
remote_mirrors
.
each
(
&
:mark_for_delete_if_blank_url
)
end
=======
>>>>>>>
ce
-
com
/
master
def
running_or_pending_build_count
(
force:
false
)
Rails
.
cache
.
fetch
([
'projects'
,
id
,
'running_or_pending_build_count'
],
force:
force
)
do
builds
.
running_or_pending
.
count
(
:all
)
...
...
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