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

Re: [PATCH] t5500-fetch-pack: ignore output from git init

From
Jeff King <peff@peff.net>
Date
May 24, 2009, 16:48 UTC
Message-ID
<20090524164826.GD22792@coredump.intra.peff.net>
In-Reply-To
<20090524164329.GC22792@coredump.intra.peff.net>
On Sun, May 24, 2009 at 12:43:30PM -0400, Jeff King wrote:
Show 19 quoted lines
> > +++ b/t/t5500-fetch-pack.sh
> > @@ -97,7 +97,7 @@ pull_to_client () {
> >  (
> >  	mkdir client &&
> >  	cd client &&
> > -	git init 2>> log2.txt &&
> > +	git init 2>> log2.txt > /dev/null &&
> >  	git config transfer.unpacklimit 0
> >  )
> 
> Why not:
> 
>   test_expect_success 'setup client repo' '
>     mkdir client &&
>     (cd client &&
>      git init 2>>log2.txt &&
>      git config transfer.unpacklimit 0
>     )
>   '

Actually, taking a closer look at the script, I think you could probably ditch the '2>>log2.txt' bit entirely. The log file is never read and appears to be completely for debugging. Putting the code into the test harness means that output will respect --verbose properly, which means a separate log is unnecessary.

-Peff
Previous: Jeff KingNext: Stephen Boyd
Message 3 of 4 in “t5500-fetch-pack: ignore output from git init”
  1. t5500-fetch-pack: ignore output from git initStephen Boyd, May 23, 2009
  2. Jeff KingMay 24, 2009
  3. Jeff KingMay 24, 2009
  4. Stephen BoydMay 24, 2009

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.