Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add git-zip-tree
[gitweb.git]
/
http-fetch.c
diff --git
a/http-fetch.c
b/http-fetch.c
index d1f74b443be23e8cd7f10128713217acfab5254b..7619b338feb92a431268fc5a3963415af1b53e99 100644
(file)
--- a/
http-fetch.c
+++ b/
http-fetch.c
@@
-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;