git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 18:12 UTC

Re: Unexpected recursion in 'git rm'

From
Matt Hunter <m@lfurio.us>
Date
Jul 3, 2026, 07:01 UTC
Message-ID
<DJOQR6XMG7QZ.2UH68XH0N1D7W@lfurio.us>
In-Reply-To
<323134122.20260702104910@gmail.com>
On Thu Jul 2, 2026 at 3:49 AM EDT, Евгений Плискин wrote:
Show 9 quoted lines
> Hello.
>
> The following git command does recurse directories as contrary to the reference (https://git-scm.com/docs/git-rm):
>
>     git rm -n *.json
>
> Without directory specification before '*.json' this command is not expected to recurse directories, but it really does.
>
> git version 2.55.0.windows.1

Hi - I threw a quick test repo together, but did not see the result you describe. Could you produce a script or series of commands to reproduce the problem?

Previous: Евгений ПлискинNext: Patrick Steinhardt
Message 2 of 8 in “Unexpected recursion in 'git rm'”
  1. Евгений ПлискинJul 2, 2026
  2. Matt HunterJul 3, 2026
  3. Patrick SteinhardtJul 3, 2026
  4. Phillip WoodJul 3, 2026
  5. Patrick SteinhardtJul 3, 2026
  6. Matt HunterJul 3, 2026
  7. Mikael MagnussonJul 3, 2026
  8. Junio C HamanoJul 3, 2026

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.