Use git index-pack for much better fetch and clone
This commit is contained in:
parent
aa0ad07cdd
commit
d18e84b77b
1 changed files with 2 additions and 2 deletions
|
@ -301,8 +301,8 @@ do_fetch()
|
||||||
echo_info "Packfile $PACK does not match digest!"
|
echo_info "Packfile $PACK does not match digest!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
DECRYPT < "$TMPPACK_ENCRYPTED" | git unpack-objects
|
DECRYPT < "$TMPPACK_ENCRYPTED" | \
|
||||||
|
git index-pack -v --stdin >/dev/null
|
||||||
# add to local pack list
|
# add to local pack list
|
||||||
printf "$PACKPFX%s\n" "$PACK" >> "$LOCALDIR/have_packs"
|
printf "$PACKPFX%s\n" "$PACK" >> "$LOCALDIR/have_packs"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue