{"thread":{"id":"4091","subject":"symlinks","startedAt":"2006-05-07T17:47:49Z","lastAt":"2006-05-07T19:28:32Z","messageCount":3,"participants":["Yakov Lerner","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"19653","messageId":"f36b08ee0605071047h32ccef4bk76ac360ada1331a@mail.gmail.com","threadId":"4091","inReplyTo":null,"subject":"symlinks","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2006-05-07T17:47:49Z","receivedAt":"2006-05-07T17:47:49Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"Hello,\n\nI have a project that makes heavy use of symlinks in the source tree.\nI added it to git, then cloned the repository, and all symlinks were\nconverted to plain files. What am I missing to preserve symlinks ?\n\nYakov\n"},{"id":"19654","messageId":"Pine.LNX.4.64.0605071104230.3718@g5.osdl.org","threadId":"4091","inReplyTo":"f36b08ee0605071047h32ccef4bk76ac360ada1331a@mail.gmail.com","subject":"Re: symlinks","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2006-05-07T18:07:41Z","receivedAt":"2006-05-07T18:07:41Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Sun, 7 May 2006, Yakov Lerner wrote:\n> \n> I have a project that makes heavy use of symlinks in the source tree.\n> I added it to git, then cloned the repository, and all symlinks were\n> converted to plain files. What am I missing to preserve symlinks ?\n\nYou're not missing anything, it sounds like a bug. What did you use to \nclone, and what version? It definitely doesn't happen for me:\n\n\tmkdir symlink\n\tcd symlink/\n\tgit-init-db \n\tln -s unknown new-link\n\tls -l\n\tgit add new-link \n\tgit commit\n\n\tcd \n\tgit clone symlink symlink2\n\tcd symlink2/\n\tls -l\n\nshows that the symlink was preserved.\n\nBut maybe there's a bug in some older version, or in some other clone \nprotocol...\n\n\t\tLinus\n"},{"id":"19661","messageId":"f36b08ee0605071228s40832980k3fd045e8fa0ba84@mail.gmail.com","threadId":"4091","inReplyTo":"Pine.LNX.4.64.0605071104230.3718@g5.osdl.org","subject":"Re: symlinks","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2006-05-07T19:28:32Z","receivedAt":"2006-05-07T19:28:32Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"On 5/7/06, Linus Torvalds <torvalds@osdl.org> wrote:\n>\n>\n> On Sun, 7 May 2006, Yakov Lerner wrote:\n> >\n> > I have a project that makes heavy use of symlinks in the source tree.\n> > I added it to git, then cloned the repository, and all symlinks were\n> > converted to plain files. What am I missing to preserve symlinks ?\n>\n> You're not missing anything, it sounds like a bug. What did you use to\n> clone, and what version? It definitely doesn't happen for me:\n>\n>        mkdir symlink\n>        cd symlink/\n>        git-init-db\n>        ln -s unknown new-link\n>        ls -l\n>        git add new-link\n>        git commit\n>\n>        cd\n>        git clone symlink symlink2\n>        cd symlink2/\n>        ls -l\n>\n> shows that the symlink was preserved.\n\nYes, I see now it's not git problem. I suspect\nI just incorrectly copied the files into git-init-db directory,\nsomething like 'cp -r' instead of 'cp -a' or tar/cpio. Sorry I'm\nnew to git.\n\nThanks\nYakov\n"}]}