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 &&
git config --local --path svn.authorsfile .git/info/authors.txt
git svn gc &&
+git gc --aggressive &&
git repack -a -d -f --depth=20 --window=250 &&
echo "Cloned from $url using git-svn" >.git/description &&
exec "${VISUAL:-${EDITOR:-vi}}" .git/description