Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/clean-git
blob: 00f634d572c3b04f09328c9ad23f1317cace3dcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# clean git repositories

# shellcheck source=../conf/default.conf
. "${0%/*}/../conf/default.conf"

for repo in ${repo_names}; do
  eval 'repo_path="${repo_paths__'"${repo}"'}"'
  printf 'cleaning %s (%s) ...\n' \
    "${repo}" \
    "${repo_path}"
  git -C "${repo_path}" gc
  printf '... done\n'
done