git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: symlinks

From
YLYakov Lerner <iler.ml@gmail.com>
Date
May 7, 2006, 19:28 UTC
Message-ID
<f36b08ee0605071228s40832980k3fd045e8fa0ba84@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.64.0605071104230.3718@g5.osdl.org>
On 5/7/06, Linus Torvalds <torvalds@osdl.org> wrote:
Show 25 quoted lines
>
>
> On Sun, 7 May 2006, Yakov Lerner wrote:
> >
> > 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

Previous: Linus Torvalds
Message 3 of 3 in “symlinks”
  1. Yakov LernerMay 7, 2006
  2. Linus TorvaldsMay 7, 2006
  3. Yakov LernerMay 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.