]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fetch-pack.c
Convert memcpy(a,b,20) to hashcpy(a,b).
[thirdparty/git.git] / fetch-pack.c
index e18c1489a1ab8620cade351ec502828b10a41ac4..377feded1ccafdece86499d1917d297145fd28ac 100644 (file)
@@ -404,7 +404,7 @@ static int everything_local(struct ref **refs, int nr_match, char **match)
                        continue;
                }
 
-               memcpy(ref->new_sha1, local, 20);
+               hashcpy(ref->new_sha1, local);
                if (!verbose)
                        continue;
                fprintf(stderr,