5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 12:41:41 +00:00

feat: agregado metodo de limpieza de git-lfs en cleanup_service.rb #8521
All checks were successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful

This commit is contained in:
jazzari 2023-12-12 18:15:23 +01:00
parent 2387da24e1
commit 2c99820f35

View file

@ -29,6 +29,7 @@ class CleanupService
site.deploys.find_each(&:cleanup!) site.deploys.find_each(&:cleanup!)
site.repository.gc site.repository.gc
lfs_cleanup
site.touch site.touch
end end
end end
@ -41,7 +42,14 @@ class CleanupService
next unless File.directory? site.path next unless File.directory? site.path
site.repository.gc site.repository.gc
lfs_cleanup
site.touch site.touch
end end
end end
private
def lfs_cleanup
site.repository.git_sh("git", "lfs", "prune")
site.repository.git_sh("git", "lfs", "dedup")
end
end end