Merge branch 'sh/use-hashcpy'

* sh/use-hashcpy:
  Use hashcpy() when copying object names
This commit is contained in:
Junio C Hamano
2014-03-18 13:51:04 -07:00
5 changed files with 6 additions and 6 deletions

2
refs.c
View File

@ -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;
}