Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with clone repo @ windows #37

Open
lester-kozlowski-sj opened this issue Apr 21, 2022 · 1 comment
Open

Problem with clone repo @ windows #37

lester-kozlowski-sj opened this issue Apr 21, 2022 · 1 comment

Comments

@lester-kozlowski-sj
Copy link

Hi, I have problem with clone repo:

$ git clone https://github.com/scramjetorg/scramjet-cloud-docs.git
Cloning into 'scramjet-cloud-docs'...
remote: Enumerating objects: 1446, done.
remote: Counting objects: 100% (256/256), done.
remote: Compressing objects: 100% (72/72), done.
remote: Total 1446 (delta 208), reused 184 (delta 184), pack-reused 1190
Receiving objects: 100% (1446/1446), 1.81 MiB | 1.57 MiB/s, done.
Resolving deltas: 100% (897/897), done.
error: invalid path 'samples/discord-slack-connection/discord-read/.eslintrc.js '
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 :/'

AzureAD+LesterKozłowski@DESKTOP-V88B68R MINGW64 ~/Documents/KODY/scramjet-cloud-docs (main)
$ git fetch --all
Fetching origin
AzureAD+LesterKozłowski@DESKTOP-V88B68R MINGW64 ~/Documents/KODY/scramjet-cloud-docs (main)
$ git checkout main
error: invalid path 'samples/discord-slack-connection/discord-read/.eslintrc.js '
error: invalid path 'samples/discord-slack-connection/discord-write/.eslintrc.js '
error: invalid path 'samples/discord-slack-connection/slack-read/.eslintrc.js '
error: invalid path 'samples/discord-slack-connection/slack-write/.eslintrc.js '
AzureAD+LesterKozłowski@DESKTOP-V88B68R MINGW64 ~/Documents/KODY/scramjet-cloud-docs (main)
$ ls
AzureAD+LesterKozłowski@DESKTOP-V88B68R MINGW64 ~/Documents/KODY/scramjet-cloud-docs (main)
$ git reset --hard origin/main
error: invalid path 'samples/discord-slack-connection/discord-read/.eslintrc.js '
fatal: Could not reset index file to revision 'origin/main'.
AzureAD+LesterKozłowski@DESKTOP-V88B68R MINGW64 ~/Documents/KODY/scramjet-cloud-docs (main)
$ ls
AzureAD+LesterKozłowski@DESKTOP-V88B68R MINGW64 ~/Documents/KODY/scramjet-cloud-docs (main)
$

I tried by gitbash and Git Desktop.

Problem can be bypassed by:
git config core.protectNTFS false
but it's only bypass :)

@MichalCz
Copy link
Member

Wait a sec, is that a space at the end of the filename?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants