diff options
Diffstat (limited to 't/helper/test-match-trees.c')
-rw-r--r-- | t/helper/test-match-trees.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/t/helper/test-match-trees.c b/t/helper/test-match-trees.c index 356d8edef1..4079fdee06 100644 --- a/t/helper/test-match-trees.c +++ b/t/helper/test-match-trees.c @@ -1,7 +1,8 @@ +#include "test-tool.h" #include "cache.h" #include "tree.h" -int cmd_main(int ac, const char **av) +int cmd__match_trees(int ac, const char **av) { struct object_id hash1, hash2, shifted; struct tree *one, *two; @@ -19,8 +20,8 @@ int cmd_main(int ac, const char **av) if (!two) die("not a tree-ish %s", av[2]); - shift_tree(&one->object.oid, &two->object.oid, &shifted, -1); + shift_tree(the_repository, &one->object.oid, &two->object.oid, &shifted, -1); printf("shifted: %s\n", oid_to_hex(&shifted)); - exit(0); + return 0; } |