Added automatic index generation to fast-import.
[gitweb.git] / http-fetch.c
index d1f74b443be23e8cd7f10128713217acfab5254b..7619b338feb92a431268fc5a3963415af1b53e99 100644 (file)
@@ -393,7 +393,7 @@ void prefetch(unsigned char *sha1)
        char *filename = sha1_file_name(sha1);
 
        newreq = xmalloc(sizeof(*newreq));
-       memcpy(newreq->sha1, sha1, 20);
+       hashcpy(newreq->sha1, sha1);
        newreq->repo = alt;
        newreq->url = NULL;
        newreq->local = -1;