5 if [ -e /tmp
/gitupdatelock
]; then
9 touch /tmp
/gitupdatelock
11 rootdir
="$cfg_reporoot"
16 progress
"+ `date` $dir"
17 # safe pruning: we put all our objects to all forks, then we can
18 # safely get rid of extra ones; repacks in forks will get rid of
19 # the redundant ones again then
21 if [ -d "$forkdir" ]; then
23 get_repo_list
"$forkdir/" |
25 # Match objects in parent project
26 for d
in objects
/?? objects
/pack
; do
27 [ "$d" != "objects/??" ] ||
continue
28 mkdir
-p "$rootdir/$forkdir/$fork/$d"
29 ln -f "$d"/* "$rootdir/$forkdir/$fork/$d"
35 git
--git-dir="$dir" repack
-A -d --window-memory=3G
-l -q
36 git
--git-dir="$dir" prune
37 git
--git-dir="$dir" update-server-info
38 date -R >"$dir/.last_gc"
39 progress
"- `date` $dir"
45 done 2>&1 |
grep -v '^Pack.*created\.$'