I'm doing the same git clone
on Windows 7 and on Ubuntu 17.04 (in a VM with VirtualBox) but I don't get the same result with a git status
.
I do git status
right after the git clone
is over.
On Windows :
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: server/node_modules/jQuery/README.md
modified: server/node_modules/jQuery/package.json
no changes added to commit (use "git add" and/or "git commit -a")
On Ubuntu :
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Nothing to commit, working tree clean
Now, if I open server/node_modules/jQuery/package.json
, it is indeed different.
On Windows : __dependencies and __devDependencies are missing
{
"_args": [
[
{
"raw": "jquery",
"scope": null,
"escapedName": "jquery",
"name": "jquery",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"/home/osboxes/Documents/performance"
]
],
"_from": "jquery@latest",
(...)
On Ubuntu : __dependencies and __devDependencies are visible
{
"__dependencies": {
"jsdom": "~0.2.14",
"htmlparser": "1.7.6",
"xmlhttprequest": "~1.4.2",
"location": "0.0.1",
"navigator": "~1.0.1"
},
"__devDependencies": {
"grunt": "~0.3.8",
"nodeunit": "~0.7.4"
},
"_args": [
[
{
"raw": "jQuery",
"scope": null,
"escapedName": "jQuery",
"name": "jQuery",
"rawSpec": "",
"spec": "latest",
"type": "tag"
},
"/home/osboxes/Documents/performance"
]
],
"_from": "jQuery@latest",
(...)
If I check on the repo online, it matches the Ubuntu version.
Any idea on why complete part of the files are missing in Windows and not in Ubuntu ?
I've seen many topisc about ending line problems between Windows and Ubuntu files but it seems to be another problem here.
Thanks.