mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-14 01:35:55 +09:00
Do not attempt to return blob on submodule (#6996)
This commit is contained in:
1 parent
84bfd00537
commit
0d69dfb4ca
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user