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

Re: [PATCH] git-gui: '/dev/null' on Windows is named 'nul'

From
Shawn O. Pearce <spearce@spearce.org>
Date
Mar 7, 2007, 16:57 UTC
Message-ID
<20070307165745.GA27922@spearce.org>
In-Reply-To
<45EEE7BA.E0603922@eudaptics.com>
Johannes Sixt <J.Sixt@eudaptics.com> wrote:
Show 10 quoted lines
> From: Johannes Sixt <johannes.sixt@telecom.at>
> 
> Making (or amending) an initial commit on Windows fails because
> redirecting something to '/dev/null' must fail - this device does not exist.
> Redirect to 'nul' instead.
> 
> Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
> ---
>  I've noticed this while using the MinGW port, but I do not know whether
>  this is needed or even works on Cygwin.
I had previously fixed this in gitgui-0.6.3, which is now also
merged into `maint` in git.git.  It was fixed by just removing that
redirection block, in git 1.5.0 and later commit-tree doesn't print
anything on stderr when making an initial commit.
 
-- 
Shawn.
Previous: Johannes Sixt
Message 2 of 2 in “git-gui: '/dev/null' on Windows is named 'nul'”
  1. git-gui: '/dev/null' on Windows is named 'nul'Johannes Sixt, Mar 7, 2007
  2. Shawn O. PearceMar 7, 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.