5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 10:11:42 +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.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