t / t7702-repack-cyclic-alternate.shon commit t3506: validate '-m 1 -ff' is now accepted for non-merge commits (1c32013)
   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