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

release/v1.9
zeripath 5 years ago committed by GitHub
parent 84bfd00537
commit 0d69dfb4ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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