Search code examples
gitopenshiftgit-clone

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?


Solution

  • 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