0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 11:24:50 +01:00

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

This commit is contained in:
zeripath 2019-05-21 22:32:52 +01:00 committed by GitHub
parent 84bfd00537
commit 0d69dfb4ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}