Code

fast-import: tag may point to any object type
authorDmitry Potapov <dpotapov@gmail.com>
Thu, 14 Jan 2010 04:44:19 +0000 (07:44 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2010 05:51:06 +0000 (21:51 -0800)
commit8db751a8f953bf1a571e1fd825d1a4219e65b501
tree5d09861d2bb4cfa9c6cf71011f5f16389db1c21b
parentc8cba79181abc139d7cba364bf868875426fc2c1
fast-import: tag may point to any object type

If you tried to export the official git repository, and then to import it
back then git-fast-import would die complaining that "Mark :1 not a commit".

Accordingly to a generated crash file, Mark 1 is not a commit but a blob,
which is pointed by junio-gpg-pub tag. Because git-tag allows to create such
tags, git-fast-import should import them.

Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c