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

Re: [PATCH jk/pkt-line-cleanup] t5700-clone-reference: send trace to fd 2, not 3, to please Windows git

From
Jeff King <peff@peff.net>
Date
Mar 20, 2013, 09:33 UTC
Message-ID
<20130320093313.GA9482@sigill.intra.peff.net>
In-Reply-To
<5149724C.3060105@viscovery.net>
On Wed, Mar 20, 2013 at 09:24:44AM +0100, Johannes Sixt wrote:
Show 13 quoted lines
> From: Johannes Sixt <j6t@kdbg.org>
> 
> Two tests use GIT_TRACE=3 to dump debugging information of git. On
> Windows, however, bash is unable to set up file descriptor 3 correctly
> for its child process, so that git reports "Bad file descriptor" on
> every trace attempt. The 'git clone' test succeeds nevertheless because
> an empty trace file remains, and there is only a check for the
> absence of a particular line. But the 'git fetch' process ultimately
> hangs (the dynamics that lead to this surprising result have not been
> investigated).
> 
> Since we do not otherwise use stderr in the test cases, divert the
> trace dump to stderr.

I think that is OK, but I'm curious why this is a problem _now_, and not with the code prior to 97a83fa8. The old GIT_DEBUG_SEND_PACK was also just calling write() to descriptor 3.

> Signed-off-by: Johannes Sixt <j6t@kdbg.org>
> ---
>  This fixes a regression introduced in 
...in 97a83fa8, I assume.
-Peff
Previous: Johannes SixtNext: Johannes Sixt
Message 2 of 11 in “t5700-clone-reference: send trace to fd 2, not 3, to please Windows git”
  1. t5700-clone-reference: send trace to fd 2, not 3, to please Windows gitJohannes Sixt, Mar 20, 2013
  2. Jeff KingMar 20, 2013
  3. Johannes SixtMar 20, 2013
  4. Jeff KingMar 20, 2013
  5. Jeff KingMar 20, 2013
  6. do not use GIT_TRACE_PACKET=3 in testsJeff King, Mar 20, 2013
  7. Eric SunshineMar 20, 2013
  8. Jeff KingMar 20, 2013
  9. Johannes SixtMar 21, 2013
  10. Junio C HamanoMar 21, 2013
  11. Junio C HamanoMar 20, 2013

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.