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

Re: [PATCH] Make the output of "git svn clone" less confusing.

From
EWEric Wong <normalperson@yhbt.net>
Date
Oct 18, 2007, 17:14 UTC
Message-ID
<20071018171443.GA13040@untitled>
In-Reply-To
<87abqgiqsj.fsf@lysator.liu.se>
David Kågedal <davidk@lysator.liu.se> wrote:
Show 21 quoted lines
> Eric Wong <normalperson@yhbt.net> writes:
> 
> > "Shawn O. Pearce" <spearce@spearce.org> wrote:
> >> David Kågedal <davidk@lysator.liu.se> wrote:
> >> > The problem is that the first thing it prints is
> >> > 
> >> >   Initialized empty Git repository in .git/
> >> > 
> >> > even if actually created a subdirectory and changed into it first. But to the
> >> > user, it looks like it is creating a .git/ dir in the directory he/she is
> >> > started git from.
> >> 
> >> Eric, ack/nack?
> >
> > Nack, here's (hopefully) a better patch.
> >
> > David: agree/disagree?
> 
> I don't really like this. Now you added a dependency on exactly how
> git-init-db will format its output.  So if e.g. it is updated to use
> the absolute path your patch will create bogus output.

Yes, it's quite ugly :/ I think the best solution would be to fix all GIT_DIR= setting issues and getting git-svn to always respect it for init/clone/fetch (and tests, of course!). I probably won't get around to doing any of this until Friday night or Saturday (PST), however...

Shawn: feel free to ignore this series for now
> Did you consider my suggestion of not doing the chdir befor running
> git-init-db?

That would likely break clone, and also this (from my message under the commit message).

>  I've actually just noticed that setting GIT_DIR= before running
>  git-svn clone is very broken, and I probably won't get a chance
>  to fix it for at least 24 hours (if I'm even awake)...
-- 
Eric Wong
Previous: Eric Wong
Message 6 of 6 in “Make the output of "git svn clone" less confusing.”
  1. Make the output of "git svn clone" less confusing.David Kågedal, Oct 15, 2007
  2. Eric WongOct 16, 2007
  3. David KågedalOct 16, 2007
  4. Shawn O. PearceOct 18, 2007
  5. Eric WongOct 18, 2007
  6. Eric WongOct 18, 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.