git clone --mirror --config core.sharedRepository=0644 "$source_dir" "$dest_dir" &&
cd "$dest_dir" &&
+git gc --aggressive &&
git repack -a -d -f --depth=20 --window=250 &&
git fsck --strict &&
cp -p hooks/post-update.sample hooks/post-update && hooks/post-update &&