We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0def4f1 commit 56d1f44Copy full SHA for 56d1f44
1 file changed
packages/git/src/file-system/GitRemote.ts
@@ -264,10 +264,11 @@ export default class GitRemote extends BaseFileSystem implements FileSystem {
264
cb(new ApiError(ErrorCode.EINVAL, e.message));
265
}
266
entryList?.forEach((item) => {
267
+ // TODO: submodule type 为 commit,当做文件夹处理,是否需要更好的提示方式,antcode 中为外链
268
const node =
- item.type === 'tree'
269
- ? new DirInode()
270
- : new FileInode(new Stats(FileType.FILE, -1, +item.mode));
+ item.type === 'blob'
+ ? new FileInode(new Stats(FileType.FILE, -1, +item.mode))
271
+ : new DirInode();
272
let p = item.path;
273
if (p[0] !== '/') {
274
p = `/${p}`;
0 commit comments