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

Cannot checkout repo on Windows #2

Closed
alt-grr opened this issue Jul 6, 2014 · 5 comments
Closed

Cannot checkout repo on Windows #2

alt-grr opened this issue Jul 6, 2014 · 5 comments

Comments

@alt-grr
Copy link

alt-grr commented Jul 6, 2014

$ git clone https://github.com/veloce/lichess-mobile.git .
Cloning into '.'...
remote: Counting objects: 7840, done.
remote: Compressing objects: 100% (5510/5510), done.
emote: Total 7840 (delta 1969), reused 6887 (delta 1500)
Receiving objects: 100% (7840/7840), 8.84 MiB | 3.43 MiB/s, done.
Resolving deltas: 100% (1969/1969), done.
Checking connectivity... done.
fatal: cannot create directory at 'node_modules/gulp/node_modules/vinyl-fs/node_
modules/glob-stream/node_modules/glob2base/node_modules/lodash.findindex/node_mo
dules/lodash.createcallback/node_modules/lodash._basecreatecallback/node_modules
': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

and after setting core.longpaths=true

$ git checkout -f HEAD
Unlink of file 'node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream
/node_modules/glob2base/node_modules/lodash.findindex/node_modules/lodash.create
callback/node_modules/lodash._basecreatecallback/node_modules/lodash.bind/node_m
odules/lodash._createwrapper/node_modules' failed. Should I try again? (y/n)
@alt-grr
Copy link
Author

alt-grr commented Jul 6, 2014

Ok, it's bug in msysGit: msysgit/git#212

@alt-grr
Copy link
Author

alt-grr commented Jul 9, 2014

@veloce Are node_modules folder in repo really needed? npm install should download and install all dependencies listed in package.json - thats purpose of using dependency/package manager: to not need to storing libraries/dependecies in repo.

@veloce
Copy link
Collaborator

veloce commented Jul 9, 2014

@alt-grr
Copy link
Author

alt-grr commented Jul 9, 2014

OK

@alt-grr
Copy link
Author

alt-grr commented Jul 22, 2014

Using Git via Cygwin (I recommend more up-to-date version from http://cygwinports.org/ ) solves this problem 😃

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