* symlinks
@ 2006-05-07 17:47 Yakov Lerner
2006-05-07 18:07 ` symlinks Linus Torvalds
0 siblings, 1 reply; 3+ messages in thread
From: Yakov Lerner @ 2006-05-07 17:47 UTC (permalink / raw)
To: git
Hello,
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 ?
Yakov
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: symlinks
2006-05-07 17:47 symlinks Yakov Lerner
@ 2006-05-07 18:07 ` Linus Torvalds
2006-05-07 19:28 ` symlinks Yakov Lerner
0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2006-05-07 18:07 UTC (permalink / raw)
To: Yakov Lerner; +Cc: git
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.
But maybe there's a bug in some older version, or in some other clone
protocol...
Linus
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: symlinks
2006-05-07 18:07 ` symlinks Linus Torvalds
@ 2006-05-07 19:28 ` Yakov Lerner
0 siblings, 0 replies; 3+ messages in thread
From: Yakov Lerner @ 2006-05-07 19:28 UTC (permalink / raw)
To: Linus Torvalds; +Cc: git
On 5/7/06, Linus Torvalds <torvalds@osdl.org> wrote:
>
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-07 19:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-07 17:47 symlinks Yakov Lerner
2006-05-07 18:07 ` symlinks Linus Torvalds
2006-05-07 19:28 ` symlinks Yakov Lerner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox