diff --git a/tree_blob.go b/tree_blob.go index 76e5d78c3..57fea1788 100644 --- a/tree_blob.go +++ b/tree_blob.go @@ -53,7 +53,7 @@ func (t *Tree) Blob(subpath string, opts ...LsTreeOptions) (*Blob, error) { return nil, err } - if e.IsBlob() { + if e.IsBlob() || e.IsExec() { return e.Blob(), nil }