From: Jeff King Date: Tue, 13 Sep 2016 03:24:10 +0000 (-0700) Subject: test-config: setup git directory X-Git-Tag: v2.11.0-rc0~131^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/25a6c2804675a08dca648201e5bd590a787eab74?ds=inline;hp=25a6c2804675a08dca648201e5bd590a787eab74 test-config: setup git directory The t1308 test script uses our test-config helper to read repository-level config, but never actually sets up the repository. This works because git_config() blindly reads ".git/config" even if we have not configured a repository. This means that test-config won't work from a subdirectory, though since it's just a helper for the test scripts, that's not a big deal. More important is that the behavior of git_config() is going to change, and we want to make sure that t1308 continues to work. We can just use setup_git_directory(), and not the gentle form; there's no point in being flexible, as it's just a helper for the tests. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---