tristan
tristan

Reputation: 128

Why is git downloading folders as files?

For some reason, when I clone a repository on my openshift gear some directories show as the name of the directory, but they are files without extensions. How can I fix this?

Upvotes: 0

Views: 62

Answers (2)

CodeWizard
CodeWizard

Reputation: 142572

some directories show as the name of the directory, but they are files without extensions

In your case the "folders" are links.
They can be symbolic links or submodules.


Example:

This is how submodules appear in github:

enter image description here

When checked out to git they are simple folders


And this is how symlinks are displayed (arrow)

enter image description here

And on the file system (Unix) it will look lie this:

enter image description here

Upvotes: 1

xuhdev
xuhdev

Reputation: 9390

It may be caused by the fact that the directories in the repo are actually symbolic links to directories and you are on Windows. If this is the case, you can simply ignore it, and use the actual path to the directory when dealing with files in them.

Upvotes: 0

Related Questions