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

Re: [PATCHv2] mingw_rmdir: do not prompt for retry when non-empty

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Dec 10, 2012, 16:50 UTC
Message-ID
<CABPQNSZL-edn4izfMuss1-3KbLBSrGm8J08wn0TbETtsn2nn+A@mail.gmail.com>
In-Reply-To
<7vr4mxc1rd.fsf@alter.siamese.dyndns.org>
On Mon, Dec 10, 2012 at 5:25 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 24 quoted lines
> Erik Faye-Lund <kusmabite@gmail.com> writes:
>
>> in ab1a11be ("mingw_rmdir: set errno=ENOTEMPTY when appropriate"),
>> a check was added to prevent us from retrying to delete a directory
>> that is both in use and non-empty.
>>
>> However, this logic was slightly flawed; since we didn't return
>> immediately, we end up falling out of the retry-loop, but right into
>> the prompting-loop.
>>
>> Fix this by setting errno, and guarding the prompting-loop with an
>> errno-check.
>>
>> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
>> ---
>>
>> Here's the second version of this patch, sorry for the slight delay.
>
> Is this meant for me, or is it to be applied to msysgit and later
> somehow fed to me in different form?
>
> I can s/_wrmdir/rmdir/;s/wpathname/pathname/ if that is what you
> want me to do, but otherwise this patch does not apply.
>

Ugh, you are right. I intended for you to apply it, but I didn't realize that my patch was based on the msysGit-master, where Karsten's UTF-8 patches has been applied.

I'm not entirely sure what the best approach would be. The issue is present in both branches, but we only build installers from the msysGit-branch. But I think there are other people who builds Git from the upstream source code, so it would be slightly less annoying for them if the patch was fixed up and applied. But on the other hand, that causes some annoyance when (if?) Karsten's UTF-8 patches gets upstreamed.

Thoughts?
-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 5 in “[PATCHv2] mingw_rmdir: do not prompt for retry when non-empty”
  1. Erik Faye-LundDec 10, 2012
  2. Junio C HamanoDec 10, 2012
  3. Erik Faye-LundDec 10, 2012
  4. Johannes SchindelinDec 10, 2012
  5. Junio C HamanoDec 10, 2012

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.