How can I create a directory link that will survive git submodule update
?
Given the following example directory structure:
proj
|-- lib3
| `-- submod
| `-- lib
`-- lib
I created a soft link from proj/lib/
to proj/lib3/submod/lib
using something like the following command:
brad@bradpc:~/proj/lib$ ln -s ../lib3/submod/lib submodlib
creating the following directory structure:
proj
|-- lib3
| `-- submod
| `-- lib
`-- lib
`-- submodlib
However, running git submodule update
destroys my link. I was under the impression that a soft link is a logical link to a relative path, so removing the object and re-adding it would keep the link intact. How can I achieve the desired effect?