Skip to content

fast-import: commit from null_sha1

Dmitry Ivankov git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fast-import: add 'commit from 0{40}' failing testt/t9300-fast-import.sh+12 -00 replies
2/2fast-import: fix 'from 0{40}' testfast-import.c t/t9300-fast-import.sh+7 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH/RFC 0/2] fast-import: commit from null_sha1

Not so sure how null_sha1 parent should be treated in fast-import. Absent parent is represented as null_sha1 to the user in reflog, but isn't allowed as an argument for porcelain nor shows in most plumbing commands afaik.

These patches make fast-import treat

    commit refs/heads/master
    ...
    from `null_sha1`

like any other missing parent sha1 - reject such input.

Note: if we'll want this input to be valid, some other adjustments to fast-import logic may be needed for consistency.

Dmitry Ivankov (2):
fast-import: add 'commit from 0{40}' failing test
fast-import: fix 'from 0{40}' test

 fast-import.c          |   17 ++++++-----------
 t/t9300-fast-import.sh |   12 ++++++++++++
 2 files changed, 18 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.3.4