mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 10:21:41 +00:00
Merge branch 'issue-8521' into 'rails'
Las tareas de limpieza deberian correr git lfs prune tambien #8521 See merge request sutty/sutty!233
This commit is contained in:
commit
f671287fc6
1 changed files with 8 additions and 0 deletions
|
@ -31,6 +31,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
|
||||||
|
@ -45,7 +46,14 @@ class CleanupService
|
||||||
Rails.logger.info "Limpiando repositorio git de #{site.name}"
|
Rails.logger.info "Limpiando repositorio git de #{site.name}"
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue