summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-04-19 21:37:20 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-04-19 21:37:20 -0700
commiteb3af74e93953df7917dca43d264ac8d1fb85671 (patch)
tree11c6b0ae899ca4c5994e1b6d04f9bd9e4c01f251 /t
parentMerge branch 'nd/files-backend-git-dir' (diff)
parenttest-read-cache: setup git dir (diff)
downloadtgif-eb3af74e93953df7917dca43d264ac8d1fb85671.tar.xz
Merge branch 'jk/no-looking-at-dotgit-outside-repo'
Clean up fallouts from recent tightening of the set-up sequence, where Git barfs when repository information is accessed without first ensuring that it was started in a repository. * jk/no-looking-at-dotgit-outside-repo: test-read-cache: setup git dir has_sha1_file: don't bother if we are not in a repository
Diffstat (limited to 't')
-rw-r--r--t/helper/test-read-cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-read-cache.c b/t/helper/test-read-cache.c
index 2a7990efc3..48255eef31 100644
--- a/t/helper/test-read-cache.c
+++ b/t/helper/test-read-cache.c
@@ -5,6 +5,7 @@ int cmd_main(int argc, const char **argv)
int i, cnt = 1;
if (argc == 2)
cnt = strtol(argv[1], NULL, 0);
+ setup_git_directory();
for (i = 0; i < cnt; i++) {
read_cache();
discard_cache();