Verify remote packs, speed up pending request queue
[gitweb.git] / git-clone.sh
index c27a913b1ddf1474df4300dc68bebeeb06f145f1..1adf604172d5131222e152509c750f1e5a4ed9b0 100755 (executable)
@@ -126,8 +126,7 @@ yes,yes)
            fi &&
            rm -f "$D/.git/objects/sample" &&
            cd "$repo" &&
-           find objects -type f -print |
-           cpio -puamd$l "$D/.git/" || exit 1
+           find objects -depth -print | cpio -puamd$l "$D/.git/" || exit 1
            ;;
        yes)
            mkdir -p "$D/.git/objects/info"