git clone "$source_dir" "$dest_dir" &&
cd "$dest_dir" &&
+pwd >> "`dirname \"$0\"`"/locate-all.list &&
if [ "`cat \"$source_dir\"/.git/description`" = \
"Unnamed repository; edit this file 'description' to name the repository." ]
then
git clone -o upstream "$upstream" "$local_repo" &&
cd "$local_repo" &&
+pwd >> "`dirname \"$0\"`"/locate-all.list &&
git remote add origin "$origin" &&
chmod a-x .git/config &&
git config branch.$branch.merge refs/heads/$branch &&
git config push.default current &&
-git gc --aggressive &&
-exec pwd >> "`dirname \"$0\"`"/locate-all.list
+exec git gc --aggressive
git clone --bare --config core.sharedRepository=0644 "$source_dir" "$dest_dir" &&
cd "$dest_dir" &&
+pwd >> "`dirname \"$0\"`"/locate-all.list &&
git gc --aggressive &&
git repack -a -d -f --depth=20 --window=250 &&
git fsck --strict &&