-1

Here is the error message on git clone:

...
Receiving objects: 100% (8122401/8122401), 3.12 GiB | 3.31 MiB/s, done.  
Resolving deltas: 100% (6746605/6746605), 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 :/ "

As seen in:

this is the screen shot of the git-bash when I got stuck

How can I make the clone proceed?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Atharv
  • 11
  • 2
  • 1
    please prefer adding some code in your post rather than a screenshot). Moreover, you didn't even provide the command you launched... – St3an May 25 '21 at 07:08
  • thanks..and sorry I'm new here and learning.. @St3an – Atharv May 25 '21 at 08:42

1 Answers1

2

As explained in "Cloning succeded but checkout failed due to invalid path. What is the path problem?", Windows cannot handle any file named AUX.

I suspect this is the issue here, considering your output:

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

I would recommend to:

  • initialize an empty repository locally
  • add the remote repository as origin
  • set the local repo as sparse-checkout
  • add 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c' to .git/info/sparse-checkout
  • git fetch

See "Git clone all but one file or folder, possible?" as an example.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250