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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Oct 3, 2016 at 16:33 UTC
32d8b4226a22ef2b4c22cddda7e134980bbabaf6
1 file changed
-10
t/t5613-info-alternate.sh
-10
@@ -6,16 +6,6 @@
6
test_description='test transitive info/alternate entries'
7
. ./test-lib.sh
8
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
-
9
test_valid_repo() {
10
git fsck --full > fsck.log &&
11
test_line_count = 0 fsck.log