Allow fetch to modify refs
[gitweb.git] / transport-helper.c
index e24fcbb17d0bb6e28bd8c83ec55a5ce3e8bbc88e..53d8f08ee9cd3ead105953940d7ad42028b6ab4a 100644 (file)
@@ -75,7 +75,7 @@ static int release_helper(struct transport *transport)
 }
 
 static int fetch_with_fetch(struct transport *transport,
-                           int nr_heads, const struct ref **to_fetch)
+                           int nr_heads, struct ref **to_fetch)
 {
        struct child_process *helper = get_helper(transport);
        FILE *file = xfdopen(helper->out, "r");
@@ -99,7 +99,7 @@ static int fetch_with_fetch(struct transport *transport,
 }
 
 static int fetch(struct transport *transport,
-                int nr_heads, const struct ref **to_fetch)
+                int nr_heads, struct ref **to_fetch)
 {
        struct helper_data *data = transport->data;
        int i, count;