Skip to content

Commit 63f6fb3

Browse files
committed
Do not attempt to return blob on submodule
1 parent 8de76b6 commit 63f6fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/tree_blob.go

Lines changed: 1 addition & 1 deletion
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)