use setup_git_directory() in test-* programs
commit11e6b3f6d544fd6b2914583749b90b29d1d8683d
authorJeff King <peff@peff.net>
Sat, 5 Mar 2016 22:16:50 +0000 (5 17:16 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Mar 2016 20:27:35 +0000 (7 12:27 -0800)
treeca7798c3c3c85d7b040a68fa8d90ac0ea177fe35
parent85975c0c7f46aeb5010121959e38c339038758a7
use setup_git_directory() in test-* programs

Some of the test-* programs rely on examining refs, but did
not bother to make sure we are actually in a git repository.
Let's have them call setup_git_directory() to do so.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
test-match-trees.c
test-revision-walking.c