Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ab/pcre-v2'
[gitweb.git]
/
t
/
helper
/
test-read-cache.c
diff --git
a/t/helper/test-read-cache.c
b/t/helper/test-read-cache.c
index b25bcf139b2bf61292eb9910cb4f92d8ce7763bd..48255eef31a1e83d9a2bbb01670ba089a11c91f8 100644
(file)
--- a/
t/helper/test-read-cache.c
+++ b/
t/helper/test-read-cache.c
@@
-1,10
+1,11
@@
#include "cache.h"
-int
main (int argc,
char **argv)
+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();