git fail to checkout due to invalid path on Windows
mashingan opened this issue · comments
mashingan commented
Installing dnsclient using Nimble is failed with error:
Installing dnsclient@>= 0.3.2
Downloading https://github.com/ba0f3/dnsclient.nim using git
Tip: 47 messages have been suppressed, use --verbose to show them.
Error: Execution failed with exit code 128
... Command: git clone --recursive --depth 1 -b 0.3.3 https://github.com/ba0f3/dnsclient.nim C:\Users\my\AppData\Local\Temp\nimble_11824\githubcom_ba0f3dnsclientnim_0.3.2
... Output: Cloning into 'C:\Users\my\AppData\Local\Temp\nimble_11824\githubcom_ba0f3dnsclientnim_0.3.2'...
... Note: switching to '2b3d4b4e35b5e698fbbeafe16a4fa757926a4673'.
... You are in 'detached HEAD' state. You can look around, make experimental
... changes and commit them, and you can discard any commits you make in this
... state without impacting any branches by switching back to a branch.
... If you want to create a new branch to retain commits you create, you may
... do so (now or later) by using -c with the switch command. Example:
... git switch -c <new-branch-name>
... Or undo this operation with:
... git switch -
... Turn off this advice by setting config variable advice.detachedHead to false
... error: invalid path 'fuzz/hangs/id:000000,src:000214+000622,time:47569188,execs:91901793,op:splice,rep:8'
... 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 :/'
The path fuzz/hangs/id:000000,src:000214+000622,time:47569188,execs:91901793,op:splice,rep:8
is invalid path on Windows because of :
in the path.