Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15
  • symlinks · Yakov Lerner <hidden> · 2016-06-15
  • Re: symlinks · Linus Torvalds <torvalds@osdl.org> · 2016-06-15
  • Re: symlinks · Yakov Lerner <hidden> · 2016-06-15

Re: symlinks

From: Yakov Lerner <hidden>
Date: 2016-06-15 22:42:25

On 5/7/06, Linus Torvalds [off-list ref] wrote:

On Sun, 7 May 2006, Yakov Lerner wrote:
quoted
I have a project that makes heavy use of symlinks in the source tree.
I added it to git, then cloned the repository, and all symlinks were
converted to plain files. What am I missing to preserve symlinks ?
You're not missing anything, it sounds like a bug. What did you use to
clone, and what version? It definitely doesn't happen for me:

       mkdir symlink
       cd symlink/
       git-init-db
       ln -s unknown new-link
       ls -l
       git add new-link
       git commit

       cd
       git clone symlink symlink2
       cd symlink2/
       ls -l

shows that the symlink was preserved.
Yes, I see now it's not git problem. I suspect
I just incorrectly copied the files into git-init-db directory,
something like 'cp -r' instead of 'cp -a' or tar/cpio. Sorry I'm
new to git.

Thanks
Yakov
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help