pack-refs: Store the full name of the ref even when packing only tags.
commitca8e2d86c44e5cea0def1d01edfb4e6aaf642dee
authorAlexandre Julliard <julliard@winehq.org>
Thu, 2 Nov 2006 11:13:32 +0000 (2 12:13 +0100)
committerJunio C Hamano <junkio@cox.net>
Fri, 3 Nov 2006 02:04:40 +0000 (2 18:04 -0800)
tree4acbbbb6f7b39d7fe311e4ed14a640bfcd39baa9
parent5c1e235f0f2a4586ca46a5503f6283db0ac1b9ac
pack-refs: Store the full name of the ref even when packing only tags.

Using for_each_tag_ref() to enumerate tags is wrong since it removes
the refs/tags/ prefix, we need to always use for_each_ref() and filter
out non-tag references in the callback.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-refs.c