瀏覽代碼

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

tags/v1.9.0-rc1
zeripath 5 年之前
父節點
當前提交
0d69dfb4ca
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/git/tree_blob.go

+ 1
- 1
modules/git/tree_blob.go 查看文件

@@ -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…
取消
儲存