Repository navigation
pr-2252/becm/fix-fast-import-commit-from-existing-v2
tagged this
12 Oct 22:50
From: Marc Becker <becm@gmx.de>
Queries for commits created during the same 'git fast-import' session
result in a crash:
< reset refs/heads/newbranch
< from <new-commit-oid>
> fatal: not a valid commit: <new-commit-oid>
Getting file content for commit has no issue (working implementation):
< ls <new-commit-oid> file-in-new-commit.txt
> {file content}
During import, new objects may not (yet) be reachable via the ODB layer.
Try to resolve requested tag/commit via object cache first
to avoid crash.
Add test to 't/t9300.sh' with references to a pending tag and commit.
Signed-off-by: Marc Becker <becm@gmx.de>
Submitted-As: https://lore.kernel.org/git/pull.2252.v2.git.1791845420568.gitgitgadget@gmail.com
In-Reply-To: https://lore.kernel.org/git/pull.2252.git.1791653078449.gitgitgadget@gmail.com