Use git index-pack for much better fetch and clone

This commit is contained in:
root 2013-02-14 00:00:00 +00:00
parent aa0ad07cdd
commit d18e84b77b

View file

@ -301,8 +301,8 @@ do_fetch()
echo_info "Packfile $PACK does not match digest!"
exit 1
fi
DECRYPT < "$TMPPACK_ENCRYPTED" | git unpack-objects
DECRYPT < "$TMPPACK_ENCRYPTED" | \
git index-pack -v --stdin >/dev/null
# add to local pack list
printf "$PACKPFX%s\n" "$PACK" >> "$LOCALDIR/have_packs"
done