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

Re: Submodules and rewind

From
SHStephen Hemminger <shemminger@vyatta.com>
Date
Feb 20, 2008, 00:52 UTC
Message-ID
<20080219165243.7de6cbf5@extreme>
In-Reply-To
<alpine.LFD.1.00.0802191635010.7833@woody.linux-foundation.org>

On Tue, 19 Feb 2008 16:47:15 -0800 (PST) Linus Torvalds <torvalds@linux-foundation.org> wrote:

Show 9 quoted lines
> 
> 
> On Tue, 19 Feb 2008, Stephen Hemminger wrote:
> > 
> > Don't be stupid, I am not trying be obstreperous, just fix the problem.
> 
> Umm. Stephen - this is the first time you even *describe* the problem.
> 
> Your previous emails were just "hey, submodules don't work, fix it".
No I abused a submodule and broke it, it isn't git's fault directly.
> Why do you then call Dscho stupid for pointing out that you never even 
> bothered to reveal any details of what your problem was?

The cause was a accidental push of the wrong tree up into a public repository. So I manually went back and moved the original tree aside and replaced it with a new tree that was at the point before the errant push.

Show 14 quoted lines
> 
> But it's not clear how you even got into that state to begin with. How did 
> your index get that confused? You said "I had to rewind one project back 
> to a known good state", but considering the output, it looks like you 
> didn't actually rewind it, but left it in some half-way state. 
> 
> A "git reset" should have reset the index, or you could probably have done 
> something like "git add <submodule>" to basically force the index entry 
> for just that submodule to the current state it had.
> 
> At a guess, it *looks* like you reset the submodules themselves, but never 
> reset the superproject.
> 
> 		Linus
The submodule is okay shape but the superproject isn't.
Previous: Linus TorvaldsNext: Johannes Schindelin
Message 7 of 11 in “Submodules and rewind”
  1. Stephen HemmingerFeb 19, 2008
  2. Sven VerdoolaegeFeb 19, 2008
  3. Stephen HemmingerFeb 19, 2008
  4. Johannes SchindelinFeb 19, 2008
  5. Stephen HemmingerFeb 20, 2008
  6. Linus TorvaldsFeb 20, 2008
  7. Stephen HemmingerFeb 20, 2008
  8. Johannes SchindelinFeb 20, 2008
  9. Stephen HemmingerFeb 20, 2008
  10. Johannes SchindelinFeb 20, 2008
  11. Stephen HemmingerFeb 20, 2008

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.