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

Re: 'git mv' doesn't move submodule if it's in a subdirectory

From
AOAlbin Otterhäll <gmane@otterhall.com>
Date
Apr 15, 2016, 19:39 UTC
Message-ID
<nerg27$t94$1@ger.gmane.org>
In-Reply-To
<CAGZ79kaN-s74cJkgOq3+7e57-BKevMr8pr=tAHVEpELetVYnTA@mail.gmail.com>
On 2016-04-15 19:18, Stefan Beller wrote:
Show 12 quoted lines
> On Fri, Apr 15, 2016 at 1:14 AM, Albin Otterhäll <gmane@otterhall.com> wrote:
>> I've a submodule located in a subdirectory
>> ({git_rep}/home/{directory}/{submodule}), and I wanted to move the whole
>> directory up a level ({git_rep}/{directory}/{submodule}). But when I
>> used 'git mv {directory} ../' the '.gitmodule' file didn't get modified.
>>
>> Best regards,
>> Albin Otterhäll
> 
> Thanks for the bug report!
> Which version of Git do you use? (Did you try different versions?)
> 
I'm using 2.8.0 (on an Arch system). Haven't tested on any other version.
Previous: Stefan Beller
Message 7 of 7 in “'git mv' doesn't move submodule if it's in a subdirectory”
  1. Albin OtterhällApr 15, 2016
  2. Stefan BellerApr 15, 2016
  3. Stefan BellerApr 15, 2016
  4. Junio C HamanoApr 15, 2016
  5. Stefan BellerApr 15, 2016
  6. mv: allow moving nested submodulesStefan Beller, Apr 15, 2016
  7. Albin OtterhällApr 15, 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.