test-*-cache-tree: setup git dir
commit4ce742fc9c09cd3b95be309bc093f8fa54c15f96
authorJeff King <peff@peff.net>
Thu, 20 Oct 2016 06:16:59 +0000 (20 02:16 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2016 20:30:51 +0000 (26 13:30 -0700)
tree8e6736889ceefd7243cf864059372c6ee9ef67b6
parentf0056f6419deb6b4e226976c571f6429875519f1
test-*-cache-tree: setup git dir

These test helper programs access the index, but do not ever
setup_git_directory(), meaning we just blindly looked in
".git/index". This happened to work for the purposes of our
tests (which do not run from subdirectories, nor in
non-repos), but it's a bad habit.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-dump-cache-tree.c
t/helper/test-scrap-cache-tree.c