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

Re: Git Submodule Problem - Bug?

From
Thomas Rast <trast@student.ethz.ch>
Date
Nov 29, 2011, 10:25 UTC
Message-ID
<201111291125.41943.trast@student.ethz.ch>
In-Reply-To
<20111129101546.GB2829@kolya>
Fredrik Gustafsson wrote:
Show 11 quoted lines
> > [removing a submodule and adding another under the same name
> > confuses git]
> 
> This is something I did not thought about when writing that patch. The
> reason that this fails is that the part when the first submodule is
> removed is no longer complete (as intended). Before this patch
>      git config --remove-section submodule.sub &&
>      git rm .gitmodules &&
>      rm -rf sub &&
> Did remove all the data associated with the submodule. That's no longer
> the case.

So maybe the right questions to ask would be: what's the *official* way of removing a submodule completely? Do we support overwriting submodules in the way Manuel wanted to? Why not? :-)

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Fredrik GustafssonNext: Fredrik Gustafsson
Message 4 of 11 in “Git Submodule Problem - Bug?”
  1. Manuel KollerNov 28, 2011
  2. Thomas RastNov 29, 2011
  3. Fredrik GustafssonNov 29, 2011
  4. Thomas RastNov 29, 2011
  5. Fredrik GustafssonNov 29, 2011
  6. Jens LehmannNov 29, 2011
  7. Manuel KollerNov 29, 2011
  8. Junio C HamanoNov 29, 2011
  9. Heiko VoigtNov 29, 2011
  10. Manuel KollerDec 7, 2011
  11. Jens LehmannDec 7, 2011

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.