git-http-fetch: not a builtin
[gitweb.git] / transport-helper.c
index c982bb25750a7fd7f89473edf77e17c68709e74e..43fdc0a434caf65f9ecc988ad8a3ab17229f60c2 100644 (file)
@@ -75,7 +75,7 @@ static int fetch_with_fetch(struct transport *transport,
        struct strbuf buf = STRBUF_INIT;
 
        for (i = 0; i < nr_heads; i++) {
-               struct ref *posn = to_fetch[i];
+               const struct ref *posn = to_fetch[i];
                if (posn->status & REF_STATUS_UPTODATE)
                        continue;
                write_in_full(helper->in, "fetch ", 6);