0

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?

tristan
  • 98
  • 8
  • "some directories show as the name of the directory, but they are files without extensions" what? and how is openshift related? – eis Apr 06 '16 at 20:14
  • @eis I should have mentioned the server is on openshift. I doubt it matters, but I thought I would include it. Updated. As for the what, I'm not to sure either. On the server, for example, there is a directory, and when I clone the repository, it shows up as a file. – tristan Apr 06 '16 at 20:16
  • I guess you are on Windows and the "directories" in the repository are actually symbolic links? – xuhdev Apr 06 '16 at 20:20
  • @xuhdev I never thought of that. I checked and your right, they are symlinks. Thanks. – tristan Apr 06 '16 at 20:27

2 Answers2

1

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

mipadi
  • 398,885
  • 90
  • 523
  • 479
CodeWizard
  • 128,036
  • 21
  • 144
  • 167
0

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.

xuhdev
  • 8,018
  • 2
  • 41
  • 69