X-Git-Url: https://git.uis.cam.ac.uk/x/uis/git/git.git/blobdiff_plain/f86bcc7b2ce6cad68ba1a48a528e380c6126705e..21e1ee8f4f4b7767d506b02504e97f6bcaef13a0:/archive.c diff --git a/archive.c b/archive.c index 875dab64b6..78b0a398a0 100644 --- 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;