]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-clone.c
snapshot: strip bit from struct cgit_snapshot_format
[cgit.git] / ui-clone.c
index 5f6606acc76698e15d4f969df4c048a281f25106..bc989804df9b3090110efe01e21427099d98b0f7 100644 (file)
 #include "ui-clone.h"
 #include "html.h"
 #include "ui-shared.h"
+#include "packfile.h"
 
 static int print_ref_info(const char *refname, const struct object_id *oid,
                           int flags, void *cb_data)
 {
        struct object *obj;
 
-       if (!(obj = parse_object(oid->hash)))
+       if (!(obj = parse_object(oid)))
                return 0;
 
        htmlf("%s\t%s\n", oid_to_hex(oid), refname);