Merge branch 'nd/shallow-fixup'
[gitweb.git] / t / helper / test-dump-cache-tree.c
index bb53c0aa655c7a2df09638024b304a79e8b07fc6..7af116d49e04777b9321044e199254a2211aa4d4 100644 (file)
@@ -54,10 +54,11 @@ static int dump_cache_tree(struct cache_tree *it,
        return errs;
 }
 
-int main(int ac, char **av)
+int cmd_main(int ac, const char **av)
 {
        struct index_state istate;
        struct cache_tree *another = cache_tree();
+       setup_git_directory();
        if (read_cache() < 0)
                die("unable to read index file");
        istate = the_index;