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

Re: [RFC] Change handling of RelNotes

From
Marius Storm-Olsen <marius@trolltech.com>
Date
Aug 31, 2007, 06:08 UTC
Message-ID
<46D7B042.7010807@trolltech.com>
In-Reply-To
<7vejhk5tr0.fsf@gitster.siamese.dyndns.org>
Junio C Hamano said the following on 31.08.2007 04:21:
Show 12 quoted lines
> "Stephen Cuppett" <cuppett@gmail.com> writes:
>> I went to clone git onto a memory stick today.  The default fs on
>> the sticks doesn't support symlinks.  After looking a little bit,
>> the only symlink I can see in the source tree is RelNotes.  It
>> appears when going to a new release the file gets created in
>> /Documentation and the symlink updated.
> 
> Well, I hope you do not compile nor checkout git onto a memory 
> stick but use it as just a sneakernet medium.
> 
> If that is the case why should it matter if the contents tracked 
> has symlinks?

Well, you have the same thing on Windows, of course. Where the first time you try to clone git.git, it reports the RelNotes symlink. So, at first you think, "Hmm, that just seems broken"; till you discover core.symlinks=false, and set that globally, and every thing works.

So, as a Windows user you always have that option set to false; but 
you have to discover it first. I can see it being a problem on Linux, 
mounting a memorystick, and then trying to clone git.git to it. Your 
inclination to discover core.symlinks=false is not as high, I guess. 
And since it's certainly nothing you'd want in your global config, it 
might take some time before you realize that the correct way of 
cloning it for a memorystick is in fact:
     git clone -n git://repo.or.cz/git.git
(and if you'd want it checked out too)
     cd git
     git config core.symlinks false
     git checkout

Maybe we should consider having Git detect the underlying FS's capabilities when cloning, and set core.symlinks to the correct value? (You'll have to manually adjust it if you just 'cp' it to another FS, that's as expected.)

^shrug^
-- 
.marius
Previous: Junio C HamanoNext: Nanako Shiraishi
Message 5 of 12 in “[RFC] Change handling of RelNotes”
  1. Stephen CuppettAug 31, 2007
  2. Petr BaudisAug 31, 2007
  3. Junio C HamanoAug 31, 2007
  4. Junio C HamanoAug 31, 2007
  5. Marius Storm-OlsenAug 31, 2007
  6. Nanako ShiraishiAug 31, 2007
  7. Junio C HamanoAug 31, 2007
  8. autodetect core.symlinks in git-initJunio C Hamano, Aug 31, 2007
  9. Nanako ShiraishiAug 31, 2007
  10. Marius Storm-OlsenAug 31, 2007
  11. Stephen CuppettAug 31, 2007
  12. Junio C HamanoAug 31, 2007

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.