mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 08:21:41 +00:00
feat: agregado metodo de limpieza de git-lfs en cleanup_service.rb #8521
This commit is contained in:
parent
2387da24e1
commit
2c99820f35
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,7 @@ class CleanupService
|
|||
site.deploys.find_each(&:cleanup!)
|
||||
|
||||
site.repository.gc
|
||||
lfs_cleanup
|
||||
site.touch
|
||||
end
|
||||
end
|
||||
|
@ -41,7 +42,14 @@ class CleanupService
|
|||
next unless File.directory? site.path
|
||||
|
||||
site.repository.gc
|
||||
lfs_cleanup
|
||||
site.touch
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def lfs_cleanup
|
||||
site.repository.git_sh("git", "lfs", "prune")
|
||||
site.repository.git_sh("git", "lfs", "dedup")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue