Bläddra i källkod

Do not attempt to return blob on submodule (#6996)

tags/v1.9.0-rc1
zeripath 5 år sedan
förälder
incheckning
0d69dfb4ca
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      modules/git/tree_blob.go

+ 1
- 1
modules/git/tree_blob.go Visa fil

@@ -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
}


Laddar…
Avbryt
Spara