A quick comment. While I don't use fast-export, fast-import, I have seen comments on the git list https://lore.kernel.org/git/ that suggest some times the code is either running separate threads in parallel, or is don't some computations out of sequence, that can mean that some hashes aren't available at the time that you might expect leading to these sorts of faults. It's a bit speculative, but it may suggest things to look at in your investigations.
Lets hope others who are better informed are able to comment On Sunday, January 1, 2023 at 7:51:13 PM UTC Eduardo wrote: > Hi! > > Using fast-import, I tried to: > 1. Create a commit > 2. Get its hash (using get mark) > 3. Create another commit > 4. Pass the hash of the previous commit to 'from', to use it as parent > > I've got this instead: > > fatal: Not a valid commit: 846f127ede7fe8d0068e5d89419d050d88396ade > > Most Recent Commands Before Crash > --------------------------------- > commit refs/heads/master > mark :1 > committer no-author <no-author> 0 +0000 > data 0 > > get-mark :1 > commit refs/heads/master > committer no-author <no-author> 0 +0000 > data 0 > * from 846f127ede7fe8d0068e5d89419d050d88396ade > > Active Branch LRU > ----------------- > active_branches = 1 cur, 5 max > > pos clock name > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > 1) 1 refs/heads/master > > Inactive Branches > ----------------- > refs/heads/master: > status : active loaded > tip commit : 846f127ede7fe8d0068e5d89419d050d88396ade > old tree : 4b825dc642cb6eb9a060e54bf8d69288fbee4904 > cur tree : 4b825dc642cb6eb9a060e54bf8d69288fbee4904 > commit clock: 1 > last pack : 0 > > > Marks > ----- > :1 846f127ede7fe8d0068e5d89419d050d88396ade > > ------------------- > END OF CRASH REPORT > > How is "846f127ede7fe8d0068e5d89419d050d88396ade" not a valid commit when > it is showing that it is the tip commit of a branch? Is this a bug? > > git version 2.37.2 > > The exact commands are (yellow is stdout): > > commit refs/heads/master > mark :1 > committer no-author <no-author> 0 +0000 > data 0 > > > get-mark :1 > 846f127ede7fe8d0068e5d89419d050d88396ade > commit refs/heads/master > committer no-author <no-author> 0 +0000 > data 0 > > from 846f127ede7fe8d0068e5d89419d050d88396ade > > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/git-users/f2de8b18-ff82-4a15-a6fb-cb2e5dba29can%40googlegroups.com.