From 1fe259db2990e156624147f3593ce1c7e1b95491 Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Tue, 9 Apr 2024 10:59:51 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=B5=E3=83=BC=E3=83=90=E3=83=BC=E3=81=A7?= =?UTF-8?q?=E3=82=82GC=E3=82=92=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pull.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pull.sh b/pull.sh index 7536599e..92389087 100644 --- a/pull.sh +++ b/pull.sh @@ -4,7 +4,12 @@ docker exec -i taiko-mongo mongoexport --db taiko --collection users --out /dev/ docker exec -i taiko-mongo mongoexport --db taiko --collection songs --out /dev/stdout | sort -n > songs.json docker exec -i taiko-mongo mongoexport --db taiko --collection scores --out /dev/stdout | sort -n > scores.json -git gc --prune=now +docker exec -i --user=git forgejo /bin/bash -c "cd /data/git/repositories/yuuki/taiko-mongo-realtime.git && git reflog expire --expire-unreachable=now --all" +docker exec -i --user=git forgejo /bin/bash -c "cd /data/git/repositories/yuuki/taiko-mongo-realtime.git && git gc --aggressive --prune=now" + +git reflog expire --expire-unreachable=now --all +git gc --aggressive --prune=now + git add *.json changed=$(git diff --name-only --cached | paste -s -d " ") git commit --author="BOT " -m "$changed が更新されました"