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
da4a35b2
Commit
da4a35b2
authored
Jun 12, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removes redundant project pull mirroring code from a bad merge
parent
5c6b66db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
app/models/project.rb
app/models/project.rb
+1
-7
No files found.
app/models/project.rb
View file @
da4a35b2
...
...
@@ -170,7 +170,7 @@ class Project < ActiveRecord::Base
has_many
:audit_events
,
as: :entity
,
dependent: :destroy
has_many
:notification_settings
,
dependent: :destroy
,
as: :source
has_one
:import_data
,
dependent: :delete
,
class_name:
"ProjectImportData"
has_one
:import_data
,
dependent: :delete
,
class_name:
'ProjectImportData'
has_one
:project_feature
,
dependent: :destroy
has_one
:statistics
,
class_name:
'ProjectStatistics'
,
dependent: :delete
has_many
:container_repositories
,
dependent: :destroy
...
...
@@ -346,10 +346,6 @@ class Project < ActiveRecord::Base
transition
[
:scheduled
,
:started
]
=>
:failed
end
event
:import_retry
do
transition
failed: :started
end
state
:scheduled
state
:started
state
:finished
...
...
@@ -410,8 +406,6 @@ class Project < ActiveRecord::Base
after_transition
[
:finished
,
:failed
]
=>
[
:scheduled
,
:started
]
do
|
project
,
_
|
Gitlab
::
Mirror
.
increment_capacity
(
project
.
id
)
if
project
.
mirror?
end
after_transition
started: :finished
,
do: :reset_cache_and_import_attrs
end
class
<<
self
...
...
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