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

Re: git-clone --quiet broken?

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jul 6, 2008, 22:56 UTC
Message-ID
<20080706225649.GD17659@steel.home>
In-Reply-To
<7vmykvrfta.fsf@gitster.siamese.dyndns.org>
Junio C Hamano, Sun, Jul 06, 2008 02:56:17 +0200:
Show 15 quoted lines
> Dave Jones <davej@codemonkey.org.uk> writes:
> 
> > The server I run various git snapshots on recently got upgraded to git 1.5.6,
> > ...
> > I could run the clone with 2>/dev/null, but I'd really like to get
> > mail when something breaks instead of it being totally silent.
> >
> > I'm assuming this was an unintentional side-effect of some other recent change?
> 
> Yeah, I would assume so, too ;-)
> 
> Daniel, is this enough?  From re-reading the scripted version of
> git-clone, it appears that we *might* need to squelch no-progress if the
> stdout is not tty;  I do not offhand if you got that right when you
> rewrote this in C.

While at it, could we please have the first "Initialize" message removed?

    Initialize git/.git
    Initialized empty Git repository in /home/davej/git-trees/git/.git/

The default output looks redundant (that of init_db too, but the full path can be useful sometimes). Something like this, perhaps:

diff --git a/builtin-clone.c b/builtin-clone.c
index 643c7d4..4a0f1ab 100644
--- a/builtin-clone.c
+++ b/builtin-clone.c
@@ -421,7 +421,6 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
 		die("could not create leading directories of '%s'", git_dir);
 	set_git_dir(make_absolute_path(git_dir));
 
-	fprintf(stderr, "Initialize %s\n", git_dir);
 	init_db(option_template, option_quiet ? INIT_DB_QUIET : 0);
 
 	/*
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 4 of 5 in “git-clone --quiet broken?”
  1. Dave JonesJul 5, 2008
  2. Junio C HamanoJul 6, 2008
  3. Daniel BarkalowJul 6, 2008
  4. Alex RiesenJul 6, 2008
  5. Daniel BarkalowJul 7, 2008

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.