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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
cc2c737d
Commit
cc2c737d
authored
Aug 24, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just use @project directly
parent
bea29327
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
app/services/projects/import_export/cleanup_service.rb
app/services/projects/import_export/cleanup_service.rb
+2
-4
No files found.
app/services/projects/import_export/cleanup_service.rb
View file @
cc2c737d
...
...
@@ -11,15 +11,13 @@ module Projects
%r{
\A
refs/(?:
#{
names
}
)/}
end
attr_reader
:project
def
initialize
(
project
)
@project
=
project
end
# This could raise Projects::HousekeepingService::LeaseTaken
def
execute
Projects
::
HousekeepingService
.
new
(
project
).
execute
do
Projects
::
HousekeepingService
.
new
(
@
project
).
execute
do
garbage_refs
.
each
(
&
rugged
.
references
.
method
(
:delete
))
end
end
...
...
@@ -37,7 +35,7 @@ module Projects
end
def
rugged
@rugged
||=
project
.
repository
.
rugged
@rugged
||=
@
project
.
repository
.
rugged
end
end
end
...
...
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