]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-snapshot.c
ui-shared: don't print path crumbs without a repo
[ps-cgit] / ui-snapshot.c
index 9b8cddd4c6b96cac7c8ea50f366d666e5502ec6e..b2d95f74a8753d785a7db52b2ad1d53b43f0d1b4 100644 (file)
@@ -116,7 +116,7 @@ static int make_snapshot(const struct cgit_snapshot_format *format,
                                "Bad object id: %s", hex);
                return 1;
        }
-       if (!lookup_commit_reference(oid.hash)) {
+       if (!lookup_commit_reference(&oid)) {
                cgit_print_error_page(400, "Bad request",
                                "Not a commit reference: %s", hex);
                return 1;