Hi,

It seems that cygwin cannot follow the Windows native symlink correctly.
set CYGWIN=winsymlinks:nativestrict

Steps to re-produce:
1. echo test > test.txt
2. mkdir dest
3. cd dest
4. ln -s ../test.txt test.txt
5. cd ..
6. mkdir src
7. cd src
8. ln -s ../dest dest
9. cd ..
10. cat src/dest/test.txt
  cat cannot find the file of "test.txt".

The directory structure:
.
├─test.txt
├─dest/
    └─test
└─src/
    └─dest/

If I set CYGWIN=winsymlinks:lnk, all works fine for the above steps.
This is a simplified case of a problem when using repo/git.

-- 

Best regards.
Robert

Reply via email to