diff --git a/go.mod b/go.mod index 5c27c4c..8ee6c68 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/sermojohn/gitmono go 1.17 require ( - github.com/gogs/git-module v1.8.0 + github.com/gogs/git-module v1.8.1 github.com/google/go-cmdtest v0.4.0 github.com/hashicorp/go-version v1.6.0 github.com/jessevdk/go-flags v1.5.0 diff --git a/go.sum b/go.sum index 9fc2c1d..8c3009b 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/gogs/git-module v1.8.0 h1:IecGCQ0kCm0c7SFwUYcLXtfCbUb8V3Z6KJA0+WQMzms= -github.com/gogs/git-module v1.8.0/go.mod h1:Y3rsSqtFZEbn7lp+3gWf42GKIY1eNTtLt7JrmOy0yAQ= +github.com/gogs/git-module v1.8.1 h1:yC5BZ3unJOXC8N6/FgGQ8EtJXpOd217lgDcd2aPOxkc= +github.com/gogs/git-module v1.8.1/go.mod h1:Y3rsSqtFZEbn7lp+3gWf42GKIY1eNTtLt7JrmOy0yAQ= github.com/google/go-cmdtest v0.4.0 h1:ToXh6W5spLp3npJV92tk6d5hIpUPYEzHLkD+rncbyhI= github.com/google/go-cmdtest v0.4.0/go.mod h1:apVn/GCasLZUVpAJ6oWAuyP7Ne7CEsQbTnc0plM3m+o= github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= diff --git a/vendor/github.com/gogs/git-module/tree_entry.go b/vendor/github.com/gogs/git-module/tree_entry.go index cac8764..8fdf251 100644 --- a/vendor/github.com/gogs/git-module/tree_entry.go +++ b/vendor/github.com/gogs/git-module/tree_entry.go @@ -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} } } diff --git a/vendor/modules.txt b/vendor/modules.txt index aa770bc..050b74f 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,7 +1,7 @@ # github.com/davecgh/go-spew v1.1.1 ## explicit github.com/davecgh/go-spew/spew -# github.com/gogs/git-module v1.8.0 +# github.com/gogs/git-module v1.8.1 ## explicit; go 1.16 github.com/gogs/git-module # github.com/google/go-cmdtest v0.4.0