diff options
author | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-11-19 17:16:54 +0300 |
---|---|---|
committer | Jeroen Nijhof <jeroen@jeroennijhof.nl> | 2015-11-19 17:16:54 +0300 |
commit | 839aae0e473e85042f76391b44eaeb099235a813 (patch) | |
tree | c01e81d58b26b574b1a325933af8158cfdd7cdc4 /app/services/projects/housekeeping_service.rb | |
parent | 4f0a38f1a833cab8c83e77a6c5d323057883188d (diff) |
Added housekeeping status and moved path check to gitlab-shell
Diffstat (limited to 'app/services/projects/housekeeping_service.rb')
-rw-r--r-- | app/services/projects/housekeeping_service.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/services/projects/housekeeping_service.rb b/app/services/projects/housekeeping_service.rb index 48875ac3449..bea91b5f180 100644 --- a/app/services/projects/housekeeping_service.rb +++ b/app/services/projects/housekeeping_service.rb @@ -3,7 +3,7 @@ # Used for git housekeeping # # Ex. -# Projects::HousekeepingService.new(project, user).execute +# Projects::HousekeepingService.new(project).execute # module Projects class HousekeepingService < BaseService @@ -14,9 +14,7 @@ module Projects end def execute - if gitlab_shell.exists?(@project.path_with_namespace + '.git') - gitlab_shell.gc(@project.path_with_namespace) - end + gitlab_shell.gc(@project.path_with_namespace) end end end |