use alloc_ref rather than hand-allocating "struct ref"
commit6f687c21c07bfb83a63049640cba5fb82c174198
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:08:09 +0000 (24 17:08 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 18:08:05 +0000 (5 11:08 -0700)
tree676902427bac01c3d0a4b3e72d19f14421c72e25
parentcbc8feeaf97db39ff7220c4d1b03e0c3fdd2401c
use alloc_ref rather than hand-allocating "struct ref"

This saves us some manual computation, and eliminates a call
to strcpy.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
remote-curl.c