Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'mm/gc-safety-doc' into maint
[gitweb.git]
/
t
/
helper
/
test-scrap-cache-tree.c
diff --git
a/t/helper/test-scrap-cache-tree.c
b/t/helper/test-scrap-cache-tree.c
index 6efee31a4867b4ff8493161376e5a9cfdd48fe44..27fe0405b887671ff0ca4cea1b258aa850e66c8c 100644
(file)
--- a/
t/helper/test-scrap-cache-tree.c
+++ b/
t/helper/test-scrap-cache-tree.c
@@
-5,8
+5,9
@@
static struct lock_file index_lock;
-int
main(int ac,
char **av)
+int
cmd_main(int ac, const
char **av)
{
+ setup_git_directory();
hold_locked_index(&index_lock, 1);
if (read_cache() < 0)
die("unable to read index file");