This repository was archived by the owner on Sep 11, 2020. It is now read-only.
"object not found" error in object.Change#Files()
when To
is a submodule
#317
Labels
Discovered after updating to the latest version of
gopkg.in/src-d/go-git.v4
I use
object#DiffTree()
and step through the changes, unconditionally callingchange.Files()
for each. When I come across the addition of a submodule, I get the aforementioned error, when before I would not.Does it make more sense for
File()
to returnnil
instead for these cases? Presumably there's a similar issue with theFrom
side as well.The text was updated successfully, but these errors were encountered: