]> git.ipfire.org Git - thirdparty/git.git/blobdiff - parse-options-cb.c
Convert lookup_commit* to struct object_id
[thirdparty/git.git] / parse-options-cb.c
index 35a941fddcc805e3c2f7115a142745f26a94ce77..8dd57cf6eacb818ec1693d0ab90d8708a53089f5 100644 (file)
@@ -87,7 +87,7 @@ int parse_opt_commits(const struct option *opt, const char *arg, int unset)
                return -1;
        if (get_oid(arg, &oid))
                return error("malformed object name %s", arg);
-       commit = lookup_commit_reference(oid.hash);
+       commit = lookup_commit_reference(&oid);
        if (!commit)
                return error("no such commit %s", arg);
        commit_list_insert(commit, opt->value);