From 18280e02d24862ffa1cd30d243a9d12953fe91a2 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Sat, 7 May 2022 07:18:28 +0000 Subject: [PATCH] Log Git cache usage --- tools/cirrus_pack_git.sh | 3 +++ tools/cirrus_unpack_git.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tools/cirrus_pack_git.sh b/tools/cirrus_pack_git.sh index 7de8011..f8bc48d 100755 --- a/tools/cirrus_pack_git.sh +++ b/tools/cirrus_pack_git.sh @@ -8,3 +8,6 @@ do PROJECT_BASE=$(basename $PROJECT) mv ${PROJECT}/.git/index ./git_index/${PROJECT_BASE} done + +echo "Final git cache usage:" +du -h -d1 ./git_clones/ diff --git a/tools/cirrus_unpack_git.sh b/tools/cirrus_unpack_git.sh index 5f93121..a86017d 100755 --- a/tools/cirrus_unpack_git.sh +++ b/tools/cirrus_unpack_git.sh @@ -3,6 +3,9 @@ set -euxo pipefail shopt -s failglob +echo "Initial git cache usage:" +du -h -d1 ./git_clones/ + for PROJECT in ./git_index/* do PROJECT_BASE="$(basename $PROJECT)"