summaryrefslogtreecommitdiff
path: root/git-maintenance/store.sh
diff options
context:
space:
mode:
authorolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 16:32:39 -0800
committerolpc user <olpc@xo-5d-f7-86.localdomain>2020-01-07 16:32:39 -0800
commit9a5d365758f1c5bb395523a1bf99a40f9300fd6d (patch)
tree9cb332fe2f29b412c4c5fb490ac1389ee4399f2d /git-maintenance/store.sh
parent8902f7a223c782e40c8869afed906712381f2519 (diff)
downloadstandingwithresilience-9a5d365758f1c5bb395523a1bf99a40f9300fd6d.tar.gz
standingwithresilience-9a5d365758f1c5bb395523a1bf99a40f9300fd6d.zip
fix for git-repack ingnoring objects sometimes
Diffstat (limited to 'git-maintenance/store.sh')
-rwxr-xr-xgit-maintenance/store.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-maintenance/store.sh b/git-maintenance/store.sh
index 95a563b..03b324d 100755
--- a/git-maintenance/store.sh
+++ b/git-maintenance/store.sh
@@ -30,6 +30,9 @@ fi
# prevent recreation of existing data on same medium-part
git config gc.auto 0
+git pack-objects --all --unpacked --incremental --non-empty --local --compression=9 --pack-loose-unreachable .git/objects/pack/pack </dev/null
+git prune-packed
+
tmpfile="$(mktemp)"
PUBKEY=1KwpZECcrGWnM3AFVSbv3Xr5qguV4yG2sV
URLPFX="https://bico.media/$PUBKEY"