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