Skip to content

Commit 0d69dfb

Browse files
authored
Do not attempt to return blob on submodule (#6996)
1 parent 84bfd00 commit 0d69dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/tree_blob.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (t *Tree) GetBlobByPath(relpath string) (*Blob, error) {
6060
return nil, err
6161
}
6262

63-
if !entry.IsDir() {
63+
if !entry.IsDir() && !entry.IsSubModule() {
6464
return entry.Blob(), nil
6565
}
6666

0 commit comments

Comments
 (0)