]> git.ipfire.org Git - thirdparty/git.git/blame - t/t7702-repack-cyclic-alternate.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / t7702-repack-cyclic-alternate.sh
CommitLineData
539e7506
EK
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