From: Junio C Hamano Date: Thu, 21 Sep 2006 07:06:05 +0000 (-0700) Subject: pack-refs: do not pack symbolic refs. X-Git-Tag: v1.4.4-rc1~43^2~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=13e4aa90acad5738f54385c8a336f89fb6aacdd0;p=git.git pack-refs: do not pack symbolic refs. Now we can tell which one is symbolic and which one is not, it is easy to do so. Signed-off-by: Junio C Hamano --- diff --git a/builtin-pack-refs.c b/builtin-pack-refs.c index 98710893b..0fc8a555e 100644 --- a/builtin-pack-refs.c +++ b/builtin-pack-refs.c @@ -14,7 +14,9 @@ static int handle_one_ref(const char *path, const unsigned char *sha1, { FILE *refs_file = cb_data; - fprintf(refs_file, "%s %s\n", sha1_to_hex(sha1), path); + /* Do not pack the symbolic refs */ + if (!(flags & REF_ISSYMREF)) + fprintf(refs_file, "%s %s\n", sha1_to_hex(sha1), path); return 0; }