Do not attempt to return blob on submodule (#6996)

tokarchuk/v1.17
zeripath 6 years ago committed by GitHub
parent 84bfd00537
commit 0d69dfb4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/git/tree_blob.go

@ -60,7 +60,7 @@ func (t *Tree) GetBlobByPath(relpath string) (*Blob, error) {
return nil, err
}
if !entry.IsDir() {
if !entry.IsDir() && !entry.IsSubModule() {
return entry.Blob(), nil
}

Loading…
Cancel
Save