Sfoglia il codice sorgente

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

tags/v1.9.0-rc1
zeripath 5 anni fa
parent
commit
0d69dfb4ca
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      modules/git/tree_blob.go

+ 1
- 1
modules/git/tree_blob.go Vedi File

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


Loading…
Annulla
Salva