Open
Description
I use git version 2.37.1.windows.1 on my Windows 10 Pro 64 bit machine with a NTFS partition.
I want to clone some Linux kernel code from git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git.exe clone --progress --recursive -v "git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git" "C:\_Projects\linux-stable"
Cloning into 'C:\_Projects\linux-stable'...
Looking up git.kernel.org ... done.
Connecting to git.kernel.org (port 9418) ... 145.40.68.75 done.
remote: Enumerating objects: 327, done.
remote: Counting objects: 100% (327/327), done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 10739706 (delta 182), reused 203 (delta 143), pack-reused 10739379
Receiving objects: 100% (10739706/10739706), 4.12 GiB | 22.28 MiB/s, done.
Resolving deltas: 100% (8585326/8585326), done.
Checking objects: 100% (33554432/33554432), 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 did not exit cleanly (exit code 128) (768672 ms @ 30/08/2022 11:08:03)
Then I added following lines in to .git/config and try to checkout to master again:
[core]
longpaths = true
sparsecheckout = true
protectNTFS = false
and then get following errors:
git.exe checkout -f master --
error: unable to create file drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c: No such file or directory
error: unable to create file drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h: No such file or directory
error: unable to create file include/soc/arc/aux.h: No such file or directory
Your branch is up to date with 'origin/master'.
Already on 'master'
git did not exit cleanly (exit code 1) (157640 ms @ 30/08/2022 11:13:47)
I know that aux
is one of reserved word in Windows file system, but I wonder if git can manage the file names which are reserved automatically in a similar way they do with CR and LF? (for example it can replace the file name during cloning and committing)