From: René Scharfe Date: Fri, 18 May 2012 05:15:17 +0000 (+0200) Subject: archive: simplify refname handling X-Git-Tag: v1.7.11-rc0~15^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/c51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1?ds=sidebyside;hp=c51a351a6bcc64ad8cb2ed5a6ebde54b8d50eef1 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 Signed-off-by: Junio C Hamano ---