Skip to content

Commit 7f9509a

Browse files
authoredFeb 14, 2023
fix: be tolerant to implicit submodules (#90)
1 parent 8eac762 commit 7f9509a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tree_entry.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ func (es Entries) CommitsInfo(commit *Commit, opts ...CommitsInfoOptions) ([]*En
243243

244244
// Get extra information for submodules
245245
if e.IsCommit() {
246+
// Be tolerant to implicit submodules
246247
info.Submodule, err = commit.Submodule(epath)
247248
if err != nil {
248-
setError(fmt.Errorf("get submodule %q: %v", epath, err))
249-
return
249+
info.Submodule = &Submodule{Name: epath}
250250
}
251251
}
252252

0 commit comments

Comments
 (0)
Please sign in to comment.