I have a project in git, which when I symlinks down from git the first time, the symlinks do not work. From all I can see they are properly made symlinks. If I remove the symlinks and recreate them myself, git also sees them as Identical to the ones it has.
Is there a setting in Linux or Git that would prevent symlinks from working if they came form git?
The command used to create the symlinks:
ln -s /absolute/path/to/dest symlink-name
Some additional information
- Symlinks were originally created on a MacBook, but since git sees my newly created symlinks (on linux) as identical, I doubt this is the issue.
- When getting the symlinks for the first time, they do not work on linux, but on other Mac machines they do.
- After fixing the symlinks by deleting and recreating them, git sees them as identical and hench they are not overridden in future pulls.
- All symlinks are to .phar files.
- The linux machines are running Ubuntu 16.04 or Centos 7
Using ls -lah
lists the symlinks as regular files:
-rw-rw-r--. 1 vagrant vagrant 28 Nov 13 09:01 dep
-rw-rw-r--. 1 vagrant vagrant 28 Nov 13 09:01 drupal
-rw-rw-r--. 1 vagrant vagrant 20 Nov 13 09:01 drush
-rw-rw-r--. 1 vagrant vagrant 32 Nov 13 09:01 drush.complete.sh
-rw-rw-r--. 1 vagrant vagrant 29 Nov 13 09:01 drush.launcher
-rw-rw-r--. 1 vagrant vagrant 24 Nov 13 09:01 drush.php
-rw-rw-r--. 1 vagrant vagrant 33 Nov 13 09:01 php-parse
-rw-rw-r--. 1 vagrant vagrant 26 Nov 13 09:01 phpunit
-rw-rw-r--. 1 vagrant vagrant 22 Nov 13 09:01 psysh
Whereas, if I manually remove and recreate the dep
symlink, it shows up correctly. Git still sees this as identical and no changes were made.
lrwxrwxrwx. 1 vagrant vagrant 28 Nov 13 09:33 dep -> ../deployer/deployer/bin/dep
Changing the permissions form -rw-rw-r--
to lrwxrwxrwx
on the broken symlinks, does not fix them either.
Any help is greatly appreciated.