Browse Source

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

tags/v1.9.0-rc1
zeripath GitHub 6 years ago
parent
commit
54576a4c85
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/git/tree_blob.go

+ 1
- 1
modules/git/tree_blob.go View 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…
Cancel
Save