git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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
Next: Dmitry Ivankov
Message 1 of 5 in “fast-import: empty/reset branch bugs”
  1. 0/2 fast-import: empty/reset branch bugsDmitry Ivankov, Sep 22, 2011
  2. 1/2 fast-import: don't allow to tag empty branchDmitry Ivankov, Sep 22, 2011
  3. Sverre RabbelierSep 22, 2011
  4. 2/2 fast-import: don't allow to note on empty branchDmitry Ivankov, Sep 22, 2011
  5. Sverre RabbelierSep 22, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.