[PATCH 0/2] fast-import: empty/reset branch bugs
- From
Dmitry Ivankov <divanorama@gmail.com>
- Date
- Sep 22, 2011, 19:47 UTC
- Message-ID
- <1316720825-32552-1-git-send-email-divanorama@gmail.com>
fast-import uses null_sha1 for empty branches. It doesn't make a null_sha1 parent nor writes out a branch with null_sha1 head. But for notemodify and tag commands there is no check for null_sha1 and so bad tag/notes are produced instead of a error message.
Dmitry Ivankov (2): fast-import: don't allow to tag empty branch fast-import: don't allow to note on empty branch
fast-import.c | 4 ++++ t/t9300-fast-import.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 0 deletions(-)
-- 1.7.3.4