Browse Source

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

tags/v1.9.0-rc1
zeripath 5 years ago
parent
commit
0d69dfb4ca
No account linked to committer's email address
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