author | Dmitry Ivankov <divanorama@gmail.com> | |
Mon, 22 Aug 2011 12:10:18 +0000 (18:10 +0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 23 Aug 2011 18:25:56 +0000 (11:25 -0700) | ||
commit | 2efe38e7da40fdf2b6e0261984d7adaab16ad930 | |
tree | 46c1bd9e6f8b059d738e2ebc63d07b4048d40af1 | tree | snapshot |
parent | 0906f6e14e6e9df0c4ea4edb08ebe9f5d16c2391 | commit | diff |
fast-import: add tests for tagging blobs
fast-import allows to create an annotated tag that annotates a blob,
via mark or direct sha1 specification.
For mark it works, for sha1 it tries to read the object. It tries to
do so via read_sha1_file, and then checks the size to be at least 46.
That's weird, let's just allow to (annotated) tag any object referenced
by sha1. If the object originates from our packfile, we still fail though.
Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import allows to create an annotated tag that annotates a blob,
via mark or direct sha1 specification.
For mark it works, for sha1 it tries to read the object. It tries to
do so via read_sha1_file, and then checks the size to be at least 46.
That's weird, let's just allow to (annotated) tag any object referenced
by sha1. If the object originates from our packfile, we still fail though.
Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c | diff | blob | history | |
t/t9300-fast-import.sh | diff | blob | history |