git-p4: don't groom exclude path list on every commit
[gitweb.git] / builtin / name-rev.c
index de54fa93e4f6b19efef8464b64f6e9bd87ee8b5b..f1cb45c22746bbcfb76d8fb1fefd5061f582cf57 100644 (file)
@@ -379,7 +379,8 @@ static void name_rev_line(char *p, struct name_ref_data *data)
                        *(p+1) = 0;
                        if (!get_oid(p - (GIT_SHA1_HEXSZ - 1), &oid)) {
                                struct object *o =
-                                       lookup_object(oid.hash);
+                                       lookup_object(the_repository,
+                                                     oid.hash);
                                if (o)
                                        name = get_rev_name(o, &buf);
                        }
@@ -454,7 +455,8 @@ int cmd_name_rev(int argc, const char **argv, const char *prefix)
                commit = NULL;
                object = parse_object(the_repository, &oid);
                if (object) {
-                       struct object *peeled = deref_tag(object, *argv, 0);
+                       struct object *peeled = deref_tag(the_repository,
+                                                         object, *argv, 0);
                        if (peeled && peeled->type == OBJ_COMMIT)
                                commit = (struct commit *)peeled;
                }