]> git.ipfire.org Git - thirdparty/git.git/blame - t/t7702-repack-cyclic-alternate.sh
t2104: style fixes
[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'
e75d2f7f
ÆAB
7
8TEST_PASSES_SANITIZE_LEAK=true
539e7506
EK
9. ./test-lib.sh
10
11test_expect_success setup '
12 GIT_OBJECT_DIRECTORY=.git//../.git/objects &&
13 export GIT_OBJECT_DIRECTORY &&
14 touch a &&
15 git add a &&
16 git commit -m 1 &&
17 git repack -adl &&
18 echo "$(pwd)"/.git/objects/../objects >.git/objects/info/alternates
19'
20
21test_expect_success 're-packing repository with itsself as alternate' '
22 git repack -adl &&
23 git fsck
24'
25
26test_done