Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
read-cache: new API write_locked_index instead of write_index/write_cache
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index f89d589182fcfc595ff1d60f01ffe25e1ea81579..28d5eca8eaff7be48a4b89e6217886b8c96eb3b2 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-1222,7
+1222,7
@@
static int resolve_gitlink_packed_ref(struct ref_cache *refs,
if (ref == NULL)
return -1;
-
memcpy(sha1, ref->u.value.sha1, 20
);
+
hashcpy(sha1, ref->u.value.sha1
);
return 0;
}