Skip to content

Commit 32d8b42

Browse files
peffgitster
authored andcommitted
t5613: drop reachable_via function
This function was never used since its inception in dd05ea1 (test case for transitive info/alternates, 2006-05-07). Which is just as well, since it mutates the repo state in a way that would invalidate further tests, without cleaning up after itself. Let's get rid of it so that nobody is tempted to use it. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0cf3611 commit 32d8b42

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

t/t5613-info-alternate.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@
66
test_description='test transitive info/alternate entries'
77
. ./test-lib.sh
88

9-
# test that a file is not reachable in the current repository
10-
# but that it is after creating a info/alternate entry
11-
reachable_via() {
12-
alternate="$1"
13-
file="$2"
14-
if git cat-file -e "HEAD:$file"; then return 1; fi
15-
echo "$alternate" >> .git/objects/info/alternate
16-
git cat-file -e "HEAD:$file"
17-
}
18-
199
test_valid_repo() {
2010
git fsck --full > fsck.log &&
2111
test_line_count = 0 fsck.log

0 commit comments

Comments
 (0)