8 cd "$cfg_reporoot/$proj.git"
10 if check_interval lastgc
$cfg_min_gc_intreval; then
11 progress
"= [$proj] garbage check skip (last at $(config_get lastgc))"
14 progress
"+ [$proj] garbage check (`date`)"
16 # safe pruning: we put all our objects to all forks, then we can
17 # safely get rid of extra ones; repacks in forks will get rid of
18 # the redundant ones again then
20 if [ -d "$forkdir" ]; then
21 get_repo_list
"$forkdir/" |
23 # Match objects in parent project
24 for d
in objects
/?? objects
/pack
; do
25 [ "$d" != "objects/??" ] ||
continue
26 mkdir
-p "$cfg_reporoot/$forkdir/$fork.git/$d"
27 ln -f "$d"/* "$cfg_reporoot/$forkdir/$fork.git/$d"
32 quiet
=; [ -n "$show_progress" ] || quiet
=-q
33 git repack
-A -d --window-memory=3G
-l $quiet
35 git update-server-info
36 config_set lastgc
"$(date -R)"
38 progress
"- [$proj] garbage check (`date`)"