From: Stefan Beller Date: Mon, 27 Jun 2016 21:20:24 GMT Subject: Re: Git mv -- submodule -- recursive Message-ID: In-Reply-To: On Mon, Jun 27, 2016 at 1:07 PM, Bart Bogaerts wrote: > 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