archive: simplify refname handling
commitc51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Fri, 18 May 2012 05:15:17 +0000 (18 07:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 May 2012 18:26:10 +0000 (18 11:26 -0700)
tree2dba4441dbdf527c5a37c8c071c63a1f349f1ff5
parentd0f1ea6003d97e63110fa7d50bb07f546a909b6e
archive: simplify refname handling

There is no need to build a copy of the relevant part of the string just
to make sure we have a NUL-terminated string.  We can simply pass the
length of the interesting part to dwim_ref() instead.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c