ncdns-repro/tools/cirrus_pack_git.sh
2022-05-07 07:18:28 +00:00

14 lines
247 B
Bash
Executable File

#!/usr/bin/env bash
set -euxo pipefail
shopt -s failglob
for PROJECT in ./git_clones/*
do
PROJECT_BASE=$(basename $PROJECT)
mv ${PROJECT}/.git/index ./git_index/${PROJECT_BASE}
done
echo "Final git cache usage:"
du -h -d1 ./git_clones/