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

Re: [PATCH] getcwd(mingw): handle the case when there is no cwd

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 19, 2022, 19:27 UTC
Message-ID
<xmqqr193mspy.fsf@gitster.g>
In-Reply-To
<pull.1120.git.1642618562012.gitgitgadget@gmail.com>

"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com> writes:

Show 5 quoted lines
> While technically not possible on Windows via the regular Win32 API, we
> do run the regression tests in an MSYS2 Bash which uses a POSIX
> emulation layer (the MSYS2/Cygwin runtime) where a really evil hack
> _does_ allow to delete a directory even if it is the current working
> directory.
Wow.  I am not sure if I should frown or smile ;-)
>     The bug fixed by this topic was noticed due to test failures while
>     rebasing Microsoft's fork of Git onto v2.35.0-rc1. It may not be
>     desirable to take it into Git v2.35.0 this late in the -rc phase, even
>     though I do plan on integrating it into Git for Windows v2.35.0

I think we can and should take it in my tree (even direct to 'master'), as it is very clear it affects nobody other than Windows, and even if this has any unintended negative effect, having that common with "Git for Windows" would only help.

Thanks.
Previous: Johannes Schindelin via GitGitGadgetNext: Johannes Schindelin
Message 2 of 3 in “getcwd(mingw): handle the case when there is no cwd”
  1. getcwd(mingw): handle the case when there is no cwdJohannes Schindelin via GitGitGadget, Jan 19, 2022
  2. Junio C HamanoJan 19, 2022
  3. Johannes SchindelinJan 19, 2022

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.