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

release/v1.15
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
1 changed files with 1 additions and 1 deletions

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
}