Skip to content

Commit 0bbc971

Browse files
sunshinecogitster
authored andcommitted
t2004: drop unnecessary write-tree/read-tree
Unlike earlier tests which reference several trees prepared by "setup", no other tests utilize the tree from the "symlink" test, so there is no need to write it (or read it back immediately). Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9fb7b57 commit 0bbc971

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

t/t2004-checkout-cache-temp.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,6 @@ test_expect_success 'checkout --temp within subdir' '
198198
test_expect_success 'checkout --temp symlink' '
199199
rm -f path* .merge_* actual .git/index &&
200200
test_ln_s_add b a &&
201-
t4=$(git write-tree) &&
202-
rm -f .git/index &&
203-
git read-tree $t4 &&
204201
git checkout-index --temp -a >actual &&
205202
test_line_count = 1 actual &&
206203
test $(cut "-d " -f2 actual) = a &&

0 commit comments

Comments
 (0)