error: invalid path ‘drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c‘

error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'

    • 1.报错及解决办法

1.报错及解决办法

Cloning into 'Linux'...
remote: Enumerating objects: 66291, done.
remote: Total 66291 (delta 0), reused 0 (delta 0), pack-reused 66291
Receiving objects: 100% (66291/66291), 175.34 MiB | 5.31 MiB/s, done.
Resolving deltas: 100% (5827/5827), done.
error: invalid path 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

解决方法:

git config core.protectNTFS false
git reset --hard HEAD
$ git reset --hard HEAD
error: unable to stat just-written file drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c: No such file or directory
error: unable to stat just-written file drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h: No such file or directory
error: unable to stat just-written file include/soc/arc/aux.h: No such file or directory
Updating files: 100% (62299/62299), done.
fatal: Could not reset index file to revision 'HEAD'.

这样目录下就会有源码:

error: invalid path ‘drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c‘_第1张图片

来源:代码来源

你可能感兴趣的:(window,gitee)