Re: [PATCH] Re: Bug with "git submodule update" + subrepo with differing path/name?
- From
Stefan Beller <sbeller@google.com>
- Date
- Dec 20, 2017, 17:54 UTC
- Message-ID
- <CAGZ79kZf8GL1DY6Vmc-byEOOy+hrKF8X8qRPM6jNO-La+rD4uw@mail.gmail.com>
- In-Reply-To
- <CAFBGMVO+P99hJ_nKgCJ4OqhMEdRdc3m8KHNS1pPrrhU_0wS6=A@mail.gmail.com>
On Wed, Dec 20, 2017 at 12:22 AM, Andreas Urke <arurke@gmail.com> wrote:
Show 8 quoted lines
> Thanks for looking into this. > > I was able to reproduce it from scratch, but I followed my earlier > workflow where I first created the subrepos, and then later renamed > it. At the time I was not able to find any command to rename without > changing the path (and I was not able find one now either, is there > any?), so I edited name and path in .gitmodules and ran git submodule > sync. Am I asking for trouble doing it that way?
"rename without changing the path" sounds like a red flag to me, as the submodule name was introduced specifically to be a constant as the path may change, whereas the name ought to never change.
> > Let me know if you need the exact steps I followed.
Well yes, ideally as a shell script (or even embedded into our test suite).