object: add repository argument to lookup_object
[gitweb.git] / builtin / diff-tree.c
index 473615117e0adbb301e6ddc0ab000accc513a9ee..d8db8f682f03ca93fd25e0d4aaff365eb0bb7b65 100644 (file)
@@ -5,6 +5,7 @@
 #include "log-tree.h"
 #include "builtin.h"
 #include "submodule.h"
+#include "repository.h"
 
 static struct rev_info log_tree_opt;
 
@@ -68,7 +69,7 @@ static int diff_tree_stdin(char *line)
        line[len-1] = 0;
        if (parse_oid_hex(line, &oid, &p))
                return -1;
-       obj = parse_object(&oid);
+       obj = parse_object(the_repository, &oid);
        if (!obj)
                return -1;
        if (obj->type == OBJ_COMMIT)