send-email: check for repo before invoking hook
[gitweb.git] / remote-curl.c
index cf171b1bc95cd66f63c14e3337c3c91646262212..ece45993dac582ddc6ba19b2362ba1716e075eae 100644 (file)
@@ -167,7 +167,7 @@ struct discovery {
        char *buf;
        size_t len;
        struct ref *refs;
-       struct sha1_array shallow;
+       struct oid_array shallow;
        unsigned proto_git : 1;
 };
 static struct discovery *last_discovery;
@@ -234,7 +234,7 @@ static void free_discovery(struct discovery *d)
        if (d) {
                if (d == last_discovery)
                        last_discovery = NULL;
-               free(d->shallow.sha1);
+               free(d->shallow.oid);
                free(d->buf_alloc);
                free_refs(d->refs);
                free(d);