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