Skip to content

Commit

Permalink
fix: be tolerant to implicit submodules (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon authored Feb 14, 2023
1 parent 8eac762 commit 7f9509a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tree_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,10 @@ func (es Entries) CommitsInfo(commit *Commit, opts ...CommitsInfoOptions) ([]*En

// Get extra information for submodules
if e.IsCommit() {
// Be tolerant to implicit submodules
info.Submodule, err = commit.Submodule(epath)
if err != nil {
setError(fmt.Errorf("get submodule %q: %v", epath, err))
return
info.Submodule = &Submodule{Name: epath}
}
}

Expand Down

0 comments on commit 7f9509a

Please sign in to comment.