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

Re: Bug with "git mv" and submodules, and with "git submodule add something --force"

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Oct 19, 2018, 20:58 UTC
Message-ID
<20181019205837.GA84932@aiede.svl.corp.google.com>
In-Reply-To
<CAGZ79kZ4NSCknQTkpurdj_CzD+XvFzdaz1bdxPTFizjwV8=rpA@mail.gmail.com>
Stefan Beller wrote:
> Maybe for now we can do with just an update of the documentation/bugs
> section and say we cannot move files in and out of submodules?

I think we have some existing logic to prevent "git add"-ing a file within a submodule to the superproject, for example.

So "git mv" should learn the same trick. And perhaps the trick needs to be moved down a layer (e.g. into the index API). Hints?

Thanks, Jonathan

Previous: Stefan BellerNext: Junio C Hamano
Message 3 of 6 in “Bug with "git mv" and submodules, and with "git submodule add something --force"”
  1. Juergen VoglOct 19, 2018
  2. Stefan BellerOct 19, 2018
  3. Jonathan NiederOct 19, 2018
  4. Junio C HamanoOct 22, 2018
  5. Stefan BellerOct 22, 2018
  6. Junio C HamanoOct 24, 2018

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.