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

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).
Previous: Andreas UrkeNext: Andreas Urke
Message 6 of 11 in “Bug with "git submodule update" + subrepo with differing path/name?”
  1. Andreas UrkeDec 18, 2017
  2. Re: Bug with "git submodule update" + subrepo with differing path/name?Stefan Beller, Dec 19, 2017
  3. Junio C HamanoDec 19, 2017
  4. Stefan BellerDec 19, 2017
  5. Andreas UrkeDec 20, 2017
  6. Stefan BellerDec 20, 2017
  7. Andreas UrkeDec 21, 2017
  8. Stefan BellerDec 21, 2017
  9. Andreas UrkeDec 21, 2017
  10. Stefan BellerDec 21, 2017
  11. Stefan BellerDec 21, 2017

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.