t / t7702-repack-cyclic-alternate.shon commit Merge branch 'nd/clone-linked-checkout' (b9d23c2)
   1#!/bin/sh
   2#
   3# Copyright (c) 2014 Ephrim Khong
   4#
   5
   6test_description='repack involving cyclic alternate'
   7. ./test-lib.sh
   8
   9test_expect_success setup '
  10        GIT_OBJECT_DIRECTORY=.git//../.git/objects &&
  11        export GIT_OBJECT_DIRECTORY &&
  12        touch a &&
  13        git add a &&
  14        git commit -m 1 &&
  15        git repack -adl &&
  16        echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates
  17'
  18
  19test_expect_success 're-packing repository with itsself as alternate' '
  20        git repack -adl &&
  21        git fsck
  22'
  23
  24test_done