From f0fd0ee6f2463f4e9a298289353279e22d40670f Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Sun, 23 Mar 2025 17:34:59 +0100 Subject: [PATCH] bank: git pull -r before pushing --- roles/bank/templates/git.cron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/bank/templates/git.cron b/roles/bank/templates/git.cron index 2290e43..fa09df8 100644 --- a/roles/bank/templates/git.cron +++ b/roles/bank/templates/git.cron @@ -1,4 +1,4 @@ SHELL=/bin/bash #m h dom mon dow user command - 0 * * * * {{ bank_user }} (cd /home/{{ bank_user }}/data.git && git push --mirror && git gc --auto) + 0 * * * * {{ bank_user }} (cd /home/{{ bank_user }}/data.git && git pull -r && git push && git gc --auto)