load_subtree(): only consider blobs to be potential notes
commit404321879585b392118c9f4c3c4c9e4ccd6ba09f
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 26 Aug 2017 08:28:07 +0000 (26 10:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Aug 2017 16:21:01 +0000 (26 09:21 -0700)
treed2d54656704bcf41d197f543bbea5b095c4ee136
parent4d589b87e857015b4f78e47353f87d4aa717b1a0
load_subtree(): only consider blobs to be potential notes

The old code converted any entry whose path constituted a full SHA-1
as a leaf node, without regard for the type of the entry. But only
blobs can be notes. So treat entries whose paths *look like* notes
paths but that are not blobs as non-notes.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c