]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
Use git index-pack for much better fetch and clone
authorroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
committerroot <root@localhost>
Thu, 14 Feb 2013 00:00:00 +0000 (00:00 +0000)
git-remote-gcrypt

index 22b4caf2d8fbf29bb2245c1526f78a79c3e8eeb7..019c10bbecfda692954c921deba777baf58a4b6a 100755 (executable)
@@ -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