mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 07:03:55 +03:00
Do not attempt to return blob on submodule (#6996)
This commit is contained in:
parent
84bfd00537
commit
0d69dfb4ca
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ func (t *Tree) GetBlobByPath(relpath string) (*Blob, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !entry.IsDir() {
|
if !entry.IsDir() && !entry.IsSubModule() {
|
||||||
return entry.Blob(), nil
|
return entry.Blob(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue