I coded the logic for creating a commit log file and reading from it, and for me it gets the right tree hash. There might be a mistake in my understanding of the commit log file format. However, I followed the information in the link carefully: What is the file format of a git commit object data structure? - Stack Overflow
So - before I start posting my multiple code files - is there any way to get a more indicative error? This is very confusing. There isn’t a sequence of zeroes in my log file, so I suspect this indicates some error in reading the log and I can’t get information as to what causes it.
@andy1li oh, I made it return an empty vector for debugging. The exact same bug happened when I returned the correct value. (thanks for reading it though!)