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

Re: Git mv -- submodule -- recursive

From
Stefan Beller <sbeller@google.com>
Date
Jun 27, 2016, 21:20 UTC
Message-ID
<CAGZ79kbdb39NAF4wC35aH6kY7QGTjqkg=Q1RWmOzcO_d9-ZMHA@mail.gmail.com>
In-Reply-To
<CAOG-3GJ5arRRixEAjMt00jp3A+ZQQ3bGXa+ZUQrpffJyAOP_4w@mail.gmail.com>
On Mon, Jun 27, 2016 at 1:07 PM, Bart Bogaerts <bartbogaerts@gmail.com> wrote:
Show 5 quoted lines
> Hi,
>
> I tested this on git version 2.9 and it still fails (exactly the same
> behaviour as on the stackoverflow post; also the workarounded I posted
> there still works).

I see. the commit I referenced was solving a slightly different problem, than what we do here. That commit only fixed the issue for submodules in a nested directory.

The important detail what is different in this case is having another nested submodule.

If you only had
- git-repo a
-- subdirectory 2015
--- git-submodule b
-- git-submodule c
(quoted from SO)

then `git mv c 2015/` is expected to work as well as `mkdir d && git mv 2015 d/` with submodule b being nested in 2015.

but as you have a submodule inside of c, moving c is buggy.
Stefan
Previous: Bart Bogaerts
Message 4 of 4 in “Git mv -- submodule -- recursive”
  1. Bart BogaertsJun 27, 2016
  2. Stefan BellerJun 27, 2016
  3. Bart BogaertsJun 27, 2016
  4. Stefan BellerJun 27, 2016

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.