list-objects-filter: use BUG rather than die
[gitweb.git] / archive.c
index 875dab64b606704d2510b05889a934ed885019ee..78b0a398a0ff74e6d6d5afb2f7f0028b41fea32e 100644 (file)
--- a/archive.c
+++ b/archive.c
@@ -380,7 +380,7 @@ static void parse_treeish_arg(const char **argv,
        if (get_oid(name, &oid))
                die("Not a valid object name");
 
-       commit = lookup_commit_reference_gently(&oid, 1);
+       commit = lookup_commit_reference_gently(the_repository, &oid, 1);
        if (commit) {
                commit_sha1 = commit->object.oid.hash;
                archive_time = commit->date;