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, 01:13 UTC
Message-ID
<20080219171301.53893f2c@extreme>
In-Reply-To
<alpine.LSU.1.00.0802200203440.8333@wbgn129.biozentrum.uni-wuerzburg.de>

On Wed, 20 Feb 2008 02:06:36 +0100 (CET) Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 49 quoted lines
> Hi,
> 
> On Tue, 19 Feb 2008, Stephen Hemminger wrote:
> 
> > On Wed, 20 Feb 2008 00:35:33 +0100 (CET)
> > Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > 
> > > On Tue, 19 Feb 2008, Stephen Hemminger wrote:
> > > 
> > > > On Tue, 19 Feb 2008 23:32:01 +0100
> > > > Sven Verdoolaege <skimo@kotnet.org> wrote:
> > > > 
> > > > > On Tue, Feb 19, 2008 at 02:06:04PM -0800, Stephen Hemminger wrote:
> > > > > > Because of a bone headed merge, I had to rewind one project back 
> > > > > > to a known good state, but the sub module stuff is now wedged 
> > > > > > and brain stuck on the old commit id.
> > > > > > 
> > > > > > Isn't there some simple way to do 'git sub-module remove' 
> > > > > > followed by 'git sub-module add' to reset the internal index?
> > > > > 
> > > > > Why doesn't "git submodule update" work for you?
> > > > > 
> > > > 
> > > > It didn't fix it, but recloning did.
> > > 
> > > That does not make sense.  But with your reluctance with regards to 
> > > revealing details, it is really impossible to tell what is going on.
> > > 
> > > For example, you did not even once give us the output of "git 
> > > submodule", let alone "git diff <submodule>".
> > > 
> > > Helpless,
> > > Dscho
> > 
> > Don't be stupid,
> 
> Thanks, I'm trying, I'm trying.
> 
> BTW that "Helpless" was meant as "I cannot help you".
> 
> > $ git-submodule init
> > Submodule 'pkgs/linux-image-2.6.23-1-486-vyatta' (http://git.vyatta.com/linux-vyatta.git) registered for path 'pkgs/linux-image-2.6.23-1-486-vyatta'
> 
> AFAICT this is your problem.  Your urls are http:// url, and do not end in 
> a slash.
> 
> Yes, there was a fix recently, but apparently it was not enough.  With 
> the slash, it should even work on older git.
> 

That is a different issue. It worked before my messing around with the vyatta-iproute.git repository.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 9 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.