]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/lib-pack.sh
Merge branch 'es/test-cmp-typocatcher'
[thirdparty/git.git] / t / lib-pack.sh
index f3463170b39fee8befa08ee3f3e460426f731498..bb8938ccbeebbb14c19c372638365275e0724443 100644 (file)
@@ -35,8 +35,6 @@ pack_header () {
 # have hardcoded some well-known objects. See the case statements below for the
 # complete list.
 pack_obj () {
-       test_oid_init
-
        case "$1" in
        # empty blob
        $EMPTY_BLOB)
@@ -93,6 +91,14 @@ pack_obj () {
                        ;;
                esac
                ;;
+       # blob containing "\3\326"
+       471819e8c52bf11513f100b2810a8aa0622d5cd3d1c913758a071dd4b3bad8fe)
+               case "$2" in
+               '')
+                       printf '\062\170\234\143\276\006\000\000\336\000\332'
+                       return
+                       ;;
+               esac
        esac
 
        # If it's not a delta, we can convince pack-objects to generate a pack
@@ -113,7 +119,6 @@ pack_obj () {
 
 # Compute and append pack trailer to "$1"
 pack_trailer () {
-       test_oid_init &&
        test-tool $(test_oid algo) -b <"$1" >trailer.tmp &&
        cat trailer.tmp >>"$1" &&
        rm -f trailer.tmp