Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
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

@lupine

Description

@lupine

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 calling change.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 return nil instead for these cases? Presumably there's a similar issue with the From side as well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions